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

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

231. spine 播放错乱 [ 77%]

...mplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skelet...

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

232. Animation创建时无法获取高度 [ 77%]

... 1、加个timer延迟,然后获取宽高看下 2、添加一个ani.onEvent.LOADED)事件,在hui回调里获取宽高看下! 2017-08-24 0 1 分享 微博 QZONE 微信 y1036687157 赞同来自: 好吧,暂时没有其他的解决办法,用延迟函数去处理了.. 2017-08-24 0 0 分享 ...

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

233. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 77%]

...是hitArea,如下所示 (function () { var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFu...

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

234. Laya.Animator 无法通过on监听 [ 77%]

Laya.Animator 无法通过on监听 ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]); 报错 无法类型"Animator" 上不存在属性"on",现在无法通过on监听了么,请问现在要如何监听动画播放完毕 2019-04-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

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

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

236. 加载-销毁Texture使用的图片资源 [ 77%]

... const Sprite = Laya.Sprite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250,...

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

237. 如何获得浏览器的焦点状态? [ 77%]

...个回复 cuixueying 赞同来自: 1、浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可,按下home键,可以触发BLUR事件,但是单纯的监听home键,这个属于是系统的功能,浏览器做不到! 2017-05-06 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: ...

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

238. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 77%]

...序不一致的问题! package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Mouse; /* 2或多个显示对象 鼠标移到显示对象上,呈现手型光标,移出呈现箭头,当鼠标快速在2个显示对象之间切换,会出现鼠标位于显示对象之上...

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

239. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 77%]

... else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, ...

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

240. laya.d3.resource.models.Mesh_API3.0 [ 77%]

...PUMemory _setCreateURL _setGPUMemory calculateBounds clone cloneTo destroy event getBoneIndices getBoneWeights getColors getIndices getNormals getPositions getSubMesh getTangents getUVs getVertexDeclaration getVertices hasListener isCreateFromURL markAsUnreadbale off offAll offAllCaller on once setB...

来源: Laya3.0_api 发布时间: 20231115