大约有 274 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0055 秒)
...liooping属性为true** ```typescript //获取精灵 var monkey:Sprite3D = Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); scene.addChild(monkey); //获取角色动画组件 var ani:Animator = monkey.getChildAt(0).getComponent(Animator); //创建一个动画动作状态 var state...
来源: Laya2.0_文档 发布时间: 20210715
...res/ui/radioButton (2).png", "resources/res/ui/radioButton (3).png"]; Laya.loader.load(this.skins).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { for (let i: number = 0; i < this.skins.length; ++i) { let rg: Laya.RadioGroup = this.createRadioGroup(this....
来源: Laya3.0_文档 发布时间: 20251016
...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...
来源: Laya_社区 发布时间: 20190307
...e { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya.Handler.create(this, this.OnLoadDataCb)); } protected OnDownloadFileInWxOk(args:any, result:any, data:any):void { console.log("OnDownloadFileInWxOk"); console.log("" + result + ", data: " + data); if (re...
来源: Laya_社区 发布时间: 20180604
...9) at ResInfo.__proto.event (http://192.167.0.100/h5/layawe ... 490:28) at LoaderManager.__proto._endLoad (http://192.167.0.100/h5/layawe ... 291:11) at Loader.onLoaded (http://192.167.0.100/h5/layawebtest/libs/laya 2018-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180417
...导出插件,导出了带box碰撞体的模型.用这种方式加载 Laya.loader.create(["t01/t01.ls", "DoorShelf/shelf.lh", "LayaScene_layaScene/layaScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.tran...
来源: Laya_社区 发布时间: 20180412
...用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load("resources/layabox.png", Laya.Loader.IMAGE).then(() => { this.setMesh2DRender(); }); } // 配置2D网格渲染器 setMesh2DRender(): void { let mesh2Drender = this.layaMonkey.getComponent(Laya.Mesh2DRender); // ...
来源: Laya3.0_文档 发布时间: 20251120
... ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1...
来源: Laya2.0_文档 发布时间: 20210715
...下: ```typescript //先加载plf类型的合并后文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:T...
来源: Laya2.0_文档 发布时间: 20210714
...a.core.js:1143) at ResInfo.__proto.event (laya.core.js:899) at LoaderManager.__proto._endLoad (laya.core.js:14971) at Loader.onLoaded (laya.core.js:14941) at EventHandler.__proto.runWith (laya.core.js:1143) 如果把报错的地方注释掉,下面这行报错 btGImpactM...
来源: Laya_社区 发布时间: 20180816