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

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

101. Cannot read property 'toDefault' of undefined报错是什么原因 [ 69%]

...ckingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube...

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

102. 关于Laya.Component3D脚本生命周期BUG反馈 [ 69%]

...lize(owner: Laya.Sprite3D): void         {             super._initialize(owner);         }   2017-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 谢谢...

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

103. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 69%]

...erObject);         this._colliderShape.destroy();         _super.prototype._onDestroy.call(this);         this._nativeColliderObject=null;         this._colliderShape=null;         this._simulation=null;         (this.owner).transform.off(/*laya.events...

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

104. Image设置skin的Bug [ 68%]

...mage被 destroy(destroyChild: boolean = true): void {         super.destroy(true);         this._bitmap && this._bitmap.destroy();         this._bitmap = null;     }   2,当前资源加载完成后,回调设置皮肤资源找不到_bitmap /**     ...

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

105. List翻页效果 [ 68%]

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler =...

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

106. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 68%]

...lass b extends Laya.Script{    _initialize(owner:Laya.Sprite3D){      super._initialize(owner);      //加打印可以执行    }        _start(state:Laya.RenderState):void{       //加打印不执行     } }   该脚本加在Camera上面 2018-04-23 1 条评论 免费帖 --> 分...

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

107. 列表组件 · LayaAir3.0文档 · LAYABOX [ 68%]

...ya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 给List对象赋值 var data: Array<any> = []; for (var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m })...

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

108. List翻页效果怎么实现 [ 68%]

...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler =...

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

109. 更新LayaNative0.9.15需要注意的问题: [ 67%]

...Ani类中的构造函数,代码如下: public function GraphicsAni() { super(); if (Render.isConchNode) { this["drawSkin"] = function(skin:*):void { skin.transform || (skin.transform = Matrix.EMPTY); __JS__("this._addCmd([skin])"); this.setSkinMesh&&this.setSkinMesh( skin._ps, skin.mVBDa...

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

110. Tab组件如何通过js控制选中 [ 67%]

...没有问题,但是无法更改 class Tab extends TabUI{ constructor() { super() this.zOrder = 1 console.log(this._tab._selectedIndex) //返回1,正常 this._tab._selectedIndex = 0 } } xdkaka • 2017-12-14 17:40 发布肯定是已经发布了的。。。。看了下tabUI的函数也是正常的...

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