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

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

71. 关于创建Sprite获取大小 [ 76%]

...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...

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

72. UNITY3D导出模型加载错误 [ 75%]

UNITY3D导出模型加载错误 laya.core.js:12371 Uncaught Error: LoaderManager:unknown file(http://127.0.0.1/layaair/myLaya3D1/bin/null path) extension with: 1. at LoaderManager.__proto._create (laya.core.js:12371) at LoaderManager.__proto.create (laya.core.js:12339) at Loader.Laya3D._onHierarchy...

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

73. fairygui 生成的二进制文件在头条界面加载后得到的数据是空的 [ 75%]

...成的二进制文件在头条界面加载后得到的数据是空的 Laya.loader.load([         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},         { url:"res/Bag.xml", type:Laya.Loader.BUFFER}          ], Lay...

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

74. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 75%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

75. 射线检测-碰撞器混合 [ 75%]

...odel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 t...

来源: Laya_示例 发布时间: 20251130

76. 背景音乐文件太大 播放延迟 [ 75%]

...音乐文件太大 播放延迟 Laya   背景音乐太大 预加载 Laya.loader.load 音乐   Laya.SoundManager.playMusic 播放 会出现延迟效果    Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => {                 thi...

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

77. [0]laya-zip让你的游戏加载速度提升350%!! [ 75%]

...y convention, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置,来加载指定文件资源。[size...

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

78. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 75%]

...function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目...

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

79. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 74%]

...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...

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

80. Scene.load加载的时候无法正确的识别ResourceVersion [ 74%]

...n图集加载问题 请问下加载TFF字体要怎么加载呢? 请问下loader如何强制加载一个文件,避免浏览器的缓存 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 laya3D动画无法播放 unity到导出场景加载...

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