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

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

291. 请问UI之间的场景切换要怎么写 [ 66%]

...(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = fu...

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

292. websocket连接出错 [ 66%]

...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...

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

293. 骨骼动画-多纹理 [ 66%]

...Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); ...

来源: Laya2.0_示例 发布时间: 20251130

294. Skeleton骨骼动画内存泄漏 [ 66%]

...== 97){ if(this.te == null){ this.te = new Laya.Templet(); this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.destroy(); this.te = null; this.sk.destroy(); this.sk = null; } } ...

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

295. 父容器下添加多个不规则对象,如何让父容器的点击事件不响应透明区域 [ 65%]

...接 提交 1 个回复 Laya_Aaron 赞同来自: 子节点的回调参数 e:Event    e.stop冒泡就好了 2018-08-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 c__yh 相关问题 两个对象new了一个相同的对象,调用第...

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

296. List选中项下滚会变 [ 65%]

...index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的选中状态设置为false this.sList.setItem(this.selectedIndex,{ select : {label : "服...

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

297. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 65%]

...hild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); this.map.disa...

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

298. Laya2.9Unity插件问题 [ 65%]

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

299. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...Child(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); this.map.disabl...

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

300. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 65%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffe...

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