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

大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0053 秒)

381. Laya截图3D场景相关模型,导致模型透视! [ 73%]

..., false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,...

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

382. Sprite3D的Layer(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 73%]

...yer)): ```typescript //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK,...

来源: Laya2.0_文档 发布时间: 20210715

383. Sprite3D的Layer(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 73%]

...yer)): ```typescript //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK,...

来源: Laya2.0_文档 发布时间: 20210715

384. LAYABOX游戏实时语音之APP版本 [ 73%]

....getInstance().uninit(); } public void login( final String userId){ that = this;//反射需要指定的对像,在抛到主线程后this的对像不一样了,先把他用that存这,如果你们有更好的办法可以说下,我是临时用两天时间边学边做,不太懂JAVA(PS:压根...

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

385. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 73%]

...率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); private function dispose():void  {     Laya.timer.clear(this, animateFrameRateBased); } ``` ​ 当一个对象的生命周期结束时,记得清...

来源: Laya2.0_文档 发布时间: 20210715

386. 龙骨动画残影 [ 73%]

...     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, 0.3);         this._hero.on(Laya.Event.STOPPED, this, this._onPlayed);     ...

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

387. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

... null = null; onStart() { console.log("Game start"); // 初始化 protobuf this.initializeProtobuf(); // 初始化 WebSocket 连接 this.initializeWebSocket(); } // 初始化 protobuf 并加载消息定义 private initializeProtobuf() { // ChatMessage 是 .proto 文件中定义的消息类型,包...

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

388. complete.run is not a function [ 73%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function 在做微信小游...

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

389. 【音效BUG】在游戏失焦后再次返回游戏导致音效播放异常的问题与解决方案 [ 73%]

...而自动暂停,监听游戏失焦事件:Laya.stage.on(Laya.Event.BLUR,this,this.method); 在失焦的回调里设置: Laya.SoundManager.musicMuted = true; Laya.SoundManager.stopMusic(); 将正在播放的音乐路径存为成员变量;   2.监听游戏获取焦点事件: 监听游戏获...

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

390. 关于.sk文件加载问题 [ 73%]

...载问题 请问如何知道 下面全部被加载完成????    this.sk_51.loadAni("bis_51.sk");         this.sk_71.loadAni("bis_71.sk");         this.sk_81.loadAni("bis_81.sk");         this.sk_82.loadAni("bis_82.sk");         this.sk_83.loadAni("bis_83.sk"); 2017-09-12 ...

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