大约有 1,215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0062 秒)
Laya_社区(675) Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya2.0_文档(63) Laya2.0_示例(44) Laya_示例(42) Laya3.0_文档(38)
...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
... 1、加个timer延迟,然后获取宽高看下 2、添加一个ani.on(Event.LOADED)事件,在hui回调里获取宽高看下! 2017-08-24 0 1 分享 微博 QZONE 微信 y1036687157 赞同来自: 好吧,暂时没有其他的解决办法,用延迟函数去处理了.. 2017-08-24 0 0 分享 ...
来源: Laya_社区 发布时间: 20170824
...是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
Laya.Animator 无法通过on监听 ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]); 报错 无法类型"Animator" 上不存在属性"on",现在无法通过on监听了么,请问现在要如何监听动画播放完毕 2019-04-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20190429
...= 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
... 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
...个回复 cuixueying 赞同来自: 1、浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可,按下home键,可以触发BLUR事件,但是单纯的监听home键,这个属于是系统的功能,浏览器做不到! 2017-05-06 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: ...
来源: Laya_社区 发布时间: 20170506
...序不一致的问题! package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Mouse; /* 2或多个显示对象 鼠标移到显示对象上,呈现手型光标,移出呈现箭头,当鼠标快速在2个显示对象之间切换,会出现鼠标位于显示对象之上...
来源: Laya_社区 发布时间: 20170502
... 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
...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