大约有 1,144 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0050 秒)
Laya_社区(859) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果** - **建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用runtime继承式写法,如果是独立小模块,功能单一,建议用...
来源: Laya2.0_文档 发布时间: 20210715
...CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没...
来源: Laya_社区 发布时间: 20190224
...按钮注册监听后在处理函数访问不到类成员变量的问题 this.btnLogin.on(Laya.Event.CLICK, null, this.OnLoginClick); LoginView.prototype.OnLoginClick= function() { this.dlg.setContent("暂时无法登录"); }; 解决方法式在第一行代码第二个参数一定要传this(被某...
来源: Laya_社区 发布时间: 20180111
还是自定义事件问题。 A实例 a.on("vj_move", this, this.onChange,this._data); 监听 在A类 抛事件 this.event("vj_move","abc"); 断点监听处 this._data没数据 是不是写法有问题??? 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20171109
Error!,this class[Item] already exist: function Item(){ … } 这是什么错误 Laya.class(Item, "Item", Box); 定义的类,能不能清除,或者判断类是否存在 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180411
...= Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/powerup-pro.skel"; this.index = -1; // Laya.init(Browser.width, Browser.height, WebGL); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; // Laya.stage.bgColor ...
来源: Laya_社区 发布时间: 20211013
...OWALL; Laya.stage.bgColor = "#232628"; createMap(); Laya.stage.on("click", this, onStageClick); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(thi...
来源: Laya_示例 发布时间: 20240929
...件上监听mouseDown、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行...
来源: Laya_社区 发布时间: 20220424
...的场景 physics3D is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function api readFile success callback function undefined 用微信开发者调试的时候出现document.createTextNode is not a function ide导出ui时,UI代码显示不正常在小游戏中...
来源: Laya_社区 发布时间: 20200513
...eUI { constructor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():...
来源: Laya_社区 发布时间: 20180724