大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0053 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
..., 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
...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
...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
....getInstance().uninit(); } public void login( final String userId){ that = this;//反射需要指定的对像,在抛到主线程后this的对像不一样了,先把他用that存这,如果你们有更好的办法可以说下,我是临时用两天时间边学边做,不太懂JAVA(PS:压根...
来源: Laya_社区 发布时间: 20170722
...率依赖于参数指定时间。 ```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
... { 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
... null = null; onStart() { console.log("Game start"); // 初始化 protobuf this.initializeProtobuf(); // 初始化 WebSocket 连接 this.initializeWebSocket(); } // 初始化 protobuf 并加载消息定义 private initializeProtobuf() { // ChatMessage 是 .proto 文件中定义的消息类型,包...
来源: Laya3.0_文档 发布时间: 20250103
...序报错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
...而自动暂停,监听游戏失焦事件:Laya.stage.on(Laya.Event.BLUR,this,this.method); 在失焦的回调里设置: Laya.SoundManager.musicMuted = true; Laya.SoundManager.stopMusic(); 将正在播放的音乐路径存为成员变量; 2.监听游戏获取焦点事件: 监听游戏获...
来源: Laya_社区 发布时间: 20180813
...载问题 请问如何知道 下面全部被加载完成???? 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