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

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

201. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 81%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果** - **建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用runtime继承式写法,如果是独立小模块,功能单一,建议用...

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

202. 官方案例里摄像机绕物体旋转脚本的问题 [ 81%]

...CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没...

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

203. JS中关于按钮注册监听后在处理函数访问不到类成员变量的问题 [ 81%]

...按钮注册监听后在处理函数访问不到类成员变量的问题 this.btnLogin.on(Laya.Event.CLICK, null, this.OnLoginClick); LoginView.prototype.OnLoginClick= function() { this.dlg.setContent("暂时无法登录"); }; 解决方法式在第一行代码第二个参数一定要传this(被某...

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

204. 还是自定义事件问题。 [ 81%]

还是自定义事件问题。 A实例 a.on("vj_move", this, this.onChange,this._data);  监听    在A类  抛事件 this.event("vj_move","abc");   断点监听处  this._data没数据   是不是写法有问题???   2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

205. Error!,this class[Item] already exist: function Item(){ … } [ 81%]

Error!,this class[Item] already exist: function Item(){ … } 这是什么错误 Laya.class(Item, "Item", Box); 定义的类,能不能清除,或者判断类是否存在 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

206. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 81%]

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

207. 区块地图-等角地图 [ 81%]

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

208. 鼠标事件监听 异常触发mouseout [ 81%]

...件上监听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

209. wx.getFileSystemManager is not a function [ 81%]

...的场景 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

210. 切换后台时,引擎如何判断是否停止定时器? [ 81%]

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