大约有 163 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(74) Laya2.0_文档(57) Laya3.0_api(19) Laya3.0_文档(8) Laya2.0_示例(3) laya_api(1) Laya2.0_api(1)
getRes加载场景报错 Laya.loader.load("LayaScene_04_laya/04_laya.ls",Laya.Handler.create(this,this.on3DComplete)); 在load3D资源后分别用两种方法实例化场景报错 //1.实例化场景 that.scene = Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; Laya.stage.addC...
来源: Laya_社区 发布时间: 20190624
laya底层的加载为什么可以new两次 laya.net.Loader.as 第222行 new HTMLImage.create(url, {onload: onload, onerror: onerror, onCreate: function(img:*):void { image = img; //增加引用,防止垃圾回收 imgCache[url] = img; }}); 这里的调用create本身就是返回一个对象了...
来源: Laya_社区 发布时间: 20180702
...的提示功能 以下提供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用...
来源: Laya_社区 发布时间: 20161115
3d资源加载问题,Laya.loader.create加载资源销毁后第二次加载会报错,报错提示为SubMeshStaticBatch静态网格合并出错 使用Laya.loader.create加载3d资源后销毁资源,然后重新进入场景再次调用Laya.loader.create重新加载3d资源会报错,提示是SubMesh...
来源: Laya_社区 发布时间: 20190304
...gba(0,0,0,0.1)"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 ...
来源: Laya_社区 发布时间: 20190217
...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, onAssetLoaded), Laya.Handler.create(this, onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,onLoading)`返回的回调方法,是要处理progress加载进度事...
来源: Laya2.0_文档 发布时间: 20210715
...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,this.onLoading)`返回的回调方法,是要处理progress...
来源: Laya2.0_文档 发布时间: 20210715
...度进行显示,下面的编码为就是错误的。 ```javascript Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading)); ``` 在上面的代码中,使用`Handler.create(this, onLoading)`返回的回调方法,是要处理progress加载进度事件,...
来源: Laya2.0_文档 发布时间: 20210715
...tional/CompleteMainScene_test.ls", clas:BattleScene} ]; //预加载 Laya.loader.create ( this.resArray, Laya.Handler.create(this,this.onPreLoadComplete), Laya.Handler.create(this,this.onProgress), ); } onPreLoadComplete() : void { let sceneUrl = this.resArray[0]["url"]; this.scene = Laya.lo...
来源: Laya_社区 发布时间: 20190323
...yaair中类的大小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler 2017-03-16 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170316