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

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

121. replaceSlotSkinName对于spine换肤不成功 [ 76%]

...0,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseC...

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

122. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 76%]

...= Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine(url, hand...

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

123. Dialog中编辑的动画如何控制? [ 76%]

...链接 提交 1 个回复 cuixueying 赞同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick(...

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

124. localToGlobal获取坐标总是错误! [ 76%]

...ByName("boxSpaw"); //this.spriteSpaw.loadImage("../..") buttonTest.on(Laya.Event.CLICK,this,()=>{ let point = new Laya.Point(this.sprteCenter.x,this.sprteCenter.y); let pointGlobal = this.sprteCenter.localToGlobal(point); Laya.stage.addChild(this.boxSpaw); this.boxSpaw.x = pointGlobal.x; this.box...

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

125. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 76%]

...如下:   以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(L...

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

126. DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? [ 76%]

...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...

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

127. HttpRequest有一定几率触发error事件 Status:0 [ 75%]

... 图片添加点击事件 有的不生效 HttpRequest感觉没有发成功 event自定义事件的问题 微信小游戏与加载图片时不会触发erroe事件 问题状态 最新活动: 2018-05-15 15:52 浏览: 729 关注: 4 人

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

128. socket.sent [ 75%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private...

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

129. LayaAir 移动端启动鼠标右键菜单栏功能 [ 75%]

...容相关的链接 提交 1 个回复 cuixueying 赞同来自: 找到laya.events.MouseManager类文件,将该类下的以下代码注释重新编译即可 //canvas.oncontextmenu = function(e:*):*  {       // if (enabled) return false; //  }  //e.preventDefault(); 有6句,需要全部注释...

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

130. 超过最大调用堆栈大小 [ 75%]

...:8383");         output = socket.output;         socket.on(Event.OPEN, this, this.onSocketOpen);         socket.on(Event.CLOSE, this, this.onSocketClose);         socket.on(Event.MESSAGE, this, this.onMessageReveived);         socket.on(Event.ERROR, this, this...

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