大约有 2,655 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0069 秒)
Laya_社区(2025) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(82) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(47)
...、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 this.destroy() 或 t...
来源: Laya_社区 发布时间: 20170914
...毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sp...
来源: Laya3.0_文档 发布时间: 20251010
...GameMain.initGame (http://127.0.0.1:17168/game/code.js:176074:20) at EventHandler.__proto.runWith (http://127.0.0.1:17168/game/code.js:19043:41) at ResInfo.__proto.event (http://127.0.0.1:17168/game/code.js:18812:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:17168/game/co...
来源: Laya_社区 发布时间: 20191017
...uv不一致) 有方法可以解决,但比较麻烦, 1. 监听laya.events.Event.RECOVERED,监听纹理合并结束的消息,再创建custom sprite 2. 关闭纹理的自动图集合并 如果想看到正常的图片,可以修改一下代码 在你的sprite中,把uv设置修改为te...
来源: Laya_社区 发布时间: 20170904
...10_beta/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) at Ta...
来源: Laya_社区 发布时间: 20170908
...lay(0); //失去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示...
来源: Laya2.0_文档 发布时间: 20210714
... 2 个回复 cuixueying 赞同来自: 你试下,给Laya.Stage监听一个Event.RESIZE事件,在RESIZE的回调里重置下适配模式看下能不能避免这个问题! 2017-07-07 0 4 分享 微博 QZONE 微信 yung 赞同来自: 如果不下移,那么上面会被地址栏挡着一部分,...
来源: Laya_社区 发布时间: 20170707
...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
...修改laya.d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); bre...
来源: Laya_社区 发布时间: 20200119
... Classes | Index | Frames No Frames BaseCameraProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class BaseCameraInheritanceBaseCamera Sprite3D Node EventDispatcher ObjectSubclasses Camera BaseCamera 类用于创建摄像机的父类。 Public Properties Hide Inherited ...
来源: Laya2.0_api 发布时间: 20190513