大约有 2,782 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0062 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
... let pngUrl = texture.realTexture.url; let res = Laya.loader.getRes(pngUrl); if (res && res._bitmap instanceof Laya.Texture2D) { res._bitmap.destroy(); } Laya.loader.clearRes(pngUrl) } } tmpDat.d...
来源: Laya_社区 发布时间: 20240429
...ng", "../../res/ui/vscroll$down.png", "../../res/ui/vscroll$up.png"); Laya.loader.load(skins, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { placeHScroller(); placeVScroller(); } function placeHScroller() { var hs = new HScrollBar(); hs.skin = "../../res/ui/hscroll....
来源: Laya_示例 发布时间: 20251219
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); th...
来源: Laya2.0_文档 发布时间: 20210715
...有问题 跳地图时我会清除地图上的clip 调用如下方法 Laya.loader.clearRes(j,true); 但是如果再次回到这个地图 clip特效就不显示了 最终查到clip的loadComplete方法var clips:Array = WeakObject.I.get(key); 这句的clips里面的资源有问题 应该是已经被...
来源: Laya_社区 发布时间: 20171128
...取文件的话,你不用发送请求就可以,你可以直接用Laya.loader.load("http://192.168.1.21:90/Game_Config.xml",Handler.create(this,onLoadered)); public function onLoadered(data:*):void { trace("data:" + data); } 来完成文件的加载,在文件加载完会返回xml的内容信...
来源: Laya_社区 发布时间: 20161120
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190323
...nent(CameraMoveScript); //添加蒙皮动画角色模型var role3D = Laya.loader.getRes("monkey/monkey.lh");//加载到场景scene.addChild(role3D);}这一段没有执行直接跳过了,没有报错。怎么加载.lani格式的帧动画?另外能否在页面中添加按钮,点击向前或向...
来源: Laya_社区 发布时间: 20180531
...用ttf字体在小游戏中无效果 下边为使用位图字体,使用loader加载在小游戏中出错,同样使用了BitmapFont进行加载在小游戏中也出错(这两种方法在html5中都是可以正常运行) 下边为使用ttf字体,在web移动端都没有问题,但是小游戏...
来源: Laya_社区 发布时间: 20180410
...nkey/LayaMonkey.lh", type: Laya3D.HIERARCHY, priority: 1}]; //Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); Laya.loader.create("Export/LayaScene_JJF/Conventional/JJF.lh", Laya.Handler.create(this, this.onComplete)); } public onCompl...
来源: Laya_社区 发布时间: 20190531
...析xml,将项目放入微信小游戏后会报错 代码如下: Laya.loader.load([{url: "lang.xml", type: Loader.XML}]); 错误如下: gameThirdScriptError undefined;at api readFile success callback function undefined 经调试,原因就是加载了xml,去掉该行就不会报错。 同时...
来源: Laya_社区 发布时间: 20180103