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

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

101. 怎样获取父类? [ 69%]

...法,如何获取到上面那个父类呢? var TipsView = (function (_super){ function TipsView(params) { TipsView.super(this); this.sure.on(Laya.Event.MOUSE_UP,this,onSure); function onSure(params) { } } Laya.class(TipsView,"TipsView",TipsViewUI); return TipsView; })();   2017-10-17 添加评...

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

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

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

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

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

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

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

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

106. List翻页效果 [ 67%]

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

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

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

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

108. 列表组件 · LayaAir3.0文档 · LAYABOX [ 67%]

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

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. List翻页效果怎么实现 [ 67%]

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