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

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

231. laya.physics.joint.PrismaticJoint [ 45%]

...intClasspublic class PrismaticJointInheritancePrismaticJoint JointBase Component Object 平移关节:移动关节允许两个物体沿指定轴相对移动,它会阻止相对旋转 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  anchor :...

来源: Laya2.0_api 发布时间: 20190513

232. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 45%]

...ype:ActionButton}*/ // public actionButtonType; constructor() { super(); } onEnable(): void { } onDisable(): void { } } 2018-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: https://ld...

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

233. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 45%]

...yChild: boolean = true): void { this.destroyed = true; this._destroyAllComponent(); this._parent && this._parent.removeChild(this);  //销毁子节点 if (this._children) { if (destroyChild) this.destroyChildren(); else this.removeChildren(); } this.onDestroy();  this._children = null;  /...

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

234. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...才能取到json文件里的数据。 使用load()方法,示例如下: onEnable(): void { const jsonPath: string = "json/bagList.json"; Laya.loader.load(jsonPath).then((json) => { let _json = json.data; if (_json.bagList && _json.bagList.length > 0) { //把json数据传递给list...

来源: Laya3.0_文档 发布时间: 20251010

235. LayaBox HelloWorld实战 [ 45%]

...dialog.addChild(button); dialog.dragArea = '0,0,300,600'; dialog.show(); } onEnable() { this.btnShow.on(Laya.Event.CLICK,this,this.onBtnShowClick); } onDisable() { } } 是不是以为到了这一步就结束了,别着急,还有关键的一个步骤,就是把helloworld.js和我们的场景关...

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

236. 红屏bug [ 44%]

...a2.5 物理系统表现异常BUG 微信6.7.2版本3D显示BUG laya 2.0 bug onEnable 分离模式节点没有创建 问题状态 最新活动: 2020-07-19 12:31 浏览: 5684 关注: 9 人 天梦君 • 2020-07-20 13:49 我的 是刚进游戏就会出现,还有黑屏的情况,但是背景音乐还...

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

237. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

....VideoNode; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { // 视频纹理更新帧率 this.video.videoTexture.useFrame = true; this.video.videoTexture.updateFrame = 30; this.video.play(); ...

来源: Laya3.0_文档 发布时间: 20251010

238. Maximum call stack size exceeded [ 44%]

...         this.loadScene("main.scene");           }           onEnable() {             console.log('init');         }     }       /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */       class GameConfig {         stati...

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

239. TypeError: Cannot read property 'length' of null [ 44%]

...k/study/project/client/test/air_war/bin/js/bundle.js:70:18) at GameManager.onEnable (file:///D:/work/study/project/client/test/air_war/bin/js/bundle.js:47:18) at Scene._activeScripts (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:13092:46) at Scene._processActive (file:///D...

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

240. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...aya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 加载资源 Laya.loader.load("resources/spritelight.png", Laya.Loader.IMAGE).then(() => { this.setSpriteLight(); this.setDirectLight(); this.setBackground(); }); } // 配置精灵灯光 setSpriteLigh...

来源: Laya3.0_文档 发布时间: 20251010