大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0124 秒)
...来(手机VIVO X21) 资源加载方法:Laya.Sprite3D.load(res, Laya.Handler.create(null, this.OnLoadComplete)); 附件 : --> vivo_test_u3d.zip 2019-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什...
来源: Laya_社区 发布时间: 20190823
...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0); //获取刚体 var cubeRigid = cube.getComponent(Laya.Rigidbody3D); })); ```
来源: Laya2.0_文档 发布时间: 20210715
...open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创...
来源: Laya3.0_文档 发布时间: 20251010
...Laya.loader.load(["images/scrollbar.png","images/scrollbar$bar.png"], Laya.Handler.create(this, panelContent)); function panelContent() { panel = new _this.Panel(); panel.size(1081, 507); panel.pos(153, 141); panel.zOrder = 21; panel.vScrollBarSkin = 'images/scrollbar.png'; panel.vScrollBar.elasticD...
来源: Laya_社区 发布时间: 20180331
... { url:"res/Bag.xml", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoaded)); 在手机头条得到的数据是空的,手机微信是正常的,麻烦指导下 附件 : --> 2019-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190726
...type:Laya.Loader.IMAGE}); Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish)); } private LoadFinish(success:boolean):void { if(success) { let tex:any = Laya.Loader.getRes("res/...
来源: Laya_社区 发布时间: 20210618
...否告知怎么使用? //预加载声音 Laya.loader.load(BOX_OVER, Laya.Handler.create(this, this.onComplete), null, Laya.Loader.SOUND); 2018-07-09 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 谢春 相关问题 游戏运行在chro...
来源: Laya_社区 发布时间: 20180707
....json",type:Loader.ATLAS},{url:"comp/btn_queding.png",type:Loader.IMAGE}], Handler.create(this, onAssetLoaded), null);comp.json是预加载的图集下的资源,你既然是不打包,表示资源没有打包到图集,需要你预加载下这个散图资源! 2017-06-08 1 2 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20170607
... 2018-03-29 15:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播...
来源: Laya_社区 发布时间: 20180329
... Laya.init(640,1027); Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS)})(); function onLoaded(){ var karaok = new Karaok(); // new出来的内存 如何主动销毁? } })(window.LayaSample || (window.LayaSample={})); 2017-02-23 添加评...
来源: Laya_社区 发布时间: 20170223