• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 293 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)

211. timer无法执行 [ 66%]

...,可以正常执行,但是 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

212. 制作拖尾 遇到drawTriangles报错 和 修复方案 [ 66%]

...null 导致后续执行报错 解决方案是 增加了 红框中的 "|| this._curMat" 报错修复   拖尾效果体验微信小程序 <走你球球>   附件 : --> 1.zip 2021-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

来源: Laya_社区 发布时间: 20210831

213. swf预加载问题 [ 66%]

...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

214. 预制体模块 · LayaAir3文档 · LAYABOX [ 66%]

...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...

来源: Laya3.0_文档 发布时间: 20241014

215. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 66%]

...一直没有回复 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

216. 发布微信后无法触发mouse_up事件 [ 66%]

...加载完成 */ 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

217. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 65%]

...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

218. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...

来源: Laya3.0_文档 发布时间: 20251105

219. sk文件加载 [ 65%]

...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             // Laya.l...

来源: Laya_社区 发布时间: 20180828

220. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 65%]

...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