大约有 2,539 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0118 秒)
Laya_社区(1916) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...切入切出,导致背景声音不播放问题。 Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus); private onBlur() { // 暂停所有需要停止的逻辑 console.log("onBlur"); SoundManager.Instance.pau...
来源: Laya_社区 发布时间: 20250930
...lay(0); //失去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示...
来源: Laya2.0_文档 发布时间: 20210715
.../resources/app/out/vs/layaEditor/h5/layabuilder.max.js:38985:25) at EventHandler.__proto.run (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:649:27) at TabEx.__proto.event (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:442:53...
来源: Laya_社区 发布时间: 20170908
...ete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet.on(Event.ERROR, this, this.onError); this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox...
来源: Laya_社区 发布时间: 20180824
...ld(list); } private function onListRender(food):void{ trace(food); food.on(Event.CLICK,this.test); } private function test():void{ trace("test"); }我换了一种思路,是在实例化Food这个对象的时候,在构造函数里,就绑定事件监听函数。但是生成的JS代码,监听范...
来源: Laya_社区 发布时间: 20180407
...全彩老婆的遮罩层 var times=800;//持久时间 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mousemove);//事件绑定,当鼠标移动时触发mousemove事件 //把声明的第一个老婆变成灰色老婆(通过添加灰色的色彩滤镜) var grayscaleMat = [0.3086, 0.6094, 0.0820, 0, 0, ...
来源: Laya_社区 发布时间: 20171018
...de里面停止掉引起bug的代码 window['wx'].onShow((res) => { this.event(AppEvent.onShow, res); this.appStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //恢...
来源: Laya_社区 发布时间: 20200917
...0) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMGUIContainer.Handl...
来源: Laya_社区 发布时间: 20201212
...buttons", inspector: "Buttons", options: { buttons: [ { caption: "取消", event: "click_cancel_gen" }, { caption: "生成", event: "click_start_gen" } ] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "project"); } } class SplitAtlasMenu { @IEditor.menu("App/私人/图集分...
来源: Laya_社区 发布时间: 20250731
... this.foodsList[this.index]; console.log(currentFood); this.currentFood.on(Event.MOUSE_DOWN, this, onMouseDown); this.currentFood.on(Event.MOUSE_UP, this, onMouseUp); }currentFood也是Food类,是用来指向在foodList中处于下标index的元素,我是想在用currentFood指向某个元素,...
来源: Laya_社区 发布时间: 20180405