大约有 293 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(135) Laya3.0_api(87) Laya3.0_文档(36) Laya_示例(18) Laya2.0_示例(10) Laya2.0_文档(5) laya_api(1) Laya2.0_api(1)
...,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(1000, this, this.shootBall); } public sho...
来源: Laya_社区 发布时间: 20190506
...null 导致后续执行报错 解决方案是 增加了 红框中的 "|| this._curMat" 报错修复 拖尾效果体验微信小程序 <走你球球> 附件 : --> 1.zip 2021-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20210831
...ets.push(QUAN); assets.push(RUNBIN); assets.push(YUAN); mc.on(Event.LOADED,this,load); } public function load(e:* = null):void{ if(assets.length > 0){ mc.load(assets.shift()); }else{ onAssetsLoaded(); } } private function onAssetsLoaded(e:*=null):void { this.event(BEFORLOADERFINISH); } } } 2016-1...
来源: Laya_社区 发布时间: 20161213
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20241014
...一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.52519...
来源: Laya_社区 发布时间: 20180717
...加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var touches: Array<an...
来源: Laya_社区 发布时间: 20181102
...3/WebXR/core/WebXRSessionManager.ts:55 The current reference space used in this session. Returns any XRReferenceSpace; Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:62 set 参考空间 Parameters newReferenceSpace: any Returns void XRReferenceSpace; sessionMode get sessionMode(): any Defined ...
来源: Laya3.0_api 发布时间: 20231115
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20251105
...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION); } private function beginLoad():void { //加载引擎需要的资源 // Laya.l...
来源: Laya_社区 发布时间: 20180828
...tructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.creat...
来源: Laya_社区 发布时间: 20170627