• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)

1091. 加载资源时同时加载两遍 [ 53%]

...件放到atlas下,把url改成 hero.graphics.drawTexture(Laya.loader.getRes("res/atlas/role/hero_03.png"));   2017-11-20 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 刚刚你这一行报错,我就把你这一行代码改了,我不清楚,这是不是你想要的效果 2017-11-20 ...

来源: Laya_社区 发布时间: 20171120

1092. 微信小游戏在真机上网络动态加载资源的问题 [ 53%]

...rootPath = Laya.URL.basePath = ""; //加载图集 Laya.loader.load([ {url:"res/atlas/comp.atlas", type: Laya.Loader.ATLAS}, ], new Laya.Handler(this, this.onLoad)); 版本是1.7.19 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

来源: Laya_社区 发布时间: 20180921

1093. 发布之后报错,跨域问题 [ 53%]

...ed to load file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classi...

来源: Laya_社区 发布时间: 20180315

1094. Native 如何使用ttf? [ 53%]

...//ldc.layabox.com/doc/?nav=zh-ts-7-2-9 var xhr = new XMLHttpRequest(); xhr.responseType = 'arraybuffer'; xhr.open('GET', "res/font/Arial.ttf", true); xhr.onload = function () { Laya.Browser.window.conch.setFontFaceFromBuffer("Arial", xhr.response); setInterval(onDrawFrame, 15); }; xhr.onerror = func...

来源: Laya_社区 发布时间: 20181106

1095. 资源内存释放问题 [ 53%]

...释放问题 查看api,有2个释放资源的方式。 1.Laya.loader.clearRes() 2.resource.dispose() 看文档说都是清除资源释放内存,经过我测试,发现内存回收再使用resource.dispose()后才会降下来。如果使用Laya.loader.clearRes() 话,内存是不会降下来的...

来源: Laya_社区 发布时间: 20180320

1096. 图集怎么切割,如图所示,就是我只要第2和第3张图片组合,实现飞机动画效果? [ 53%]

...,导出,他们又会被放到一起去了 Laya.Animation.createFrames("res/atlas/war.atlas","hreo_fly") ; 我用这个createFrames实现飞机动画效果,旧版本,可以加多个单独的图片,, 但最新版的报错:supplied parameter do not match any signature of call target(提供...

来源: Laya_社区 发布时间: 20171207

1097. 为什么手机端网页播放8k的音频要点一下才能播放,因为下载慢吗,电脑端网页都不用 [ 53%]

...都不用?我用的是官网上的示例,SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, this.onComplete));初始化的时候有load资源Laya.loader.load(this.soundPath, Handler.create(this, this.setup)); 2019-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20190810

1098. Unity导出.lm文件,laya读取并显示,但是改变不了position [ 53%]

...取并显示,但是改变不了position var tempmodels = Laya.loader.getRes("res/LayaScene_Alien/Assets/FBXs_Stacy/EnvArctic_alien-EnvArctic_alien.lm"); this.meshSprite3D = new Laya.MeshSprite3D(tempmodels); scene.addChild(this.meshSprite3D); this.meshSprite3D.transform.position.x = 0; this.meshSp...

来源: Laya_社区 发布时间: 20180926

1099. 同样的代码Android播放不出mp3音效,IOS可以 [ 53%]

...注: 2 人 Prajna • 2018-05-14 11:02 Laya.SoundManager.playSound("res/sound/Award.mp3", 1, new Handler(this, this.loopSounder)); Barrier.prototype.loopSounder = function() { this.loopSound = true; } 文件是一个499字节的mp3文件 没法上传 Prajna • 2018-05-14 11:03 @w111436726...

来源: Laya_社区 发布时间: 20180514

1100. 图片资源是放在bin目录下吗?还是会自动打包到这个目录中的 [ 53%]

...在编辑模式下导出一下,这时候会生成一个文件夹:bin/res/atlas,你可以直接放在这个文件夹下 2017-12-08 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 wendong98 相关问题 2.0一...

来源: Laya_社区 发布时间: 20171208