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

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

1. Laya.Pool用法 [ 100%]

...yRequest(): com.bigao.h5.proto.BinaryRequest {         //     return this.aaaa = Pool.getItemByClass(ProtoPool.PROTO_BINARY_REQUEST, com.bigao.h5.proto.BinaryRequest);         // }         // get getParams(): com.bigao.h5.proto.ParamsProto {         //     return Pool.getItemByCl...

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

2. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 95%]

...class A {  protected _id:number = 1;    public get id():number { return this._id }  public set id(value:number){     this._id = vaule;  } } class B extends A {   public set id(value:number){     this._id = value + 1;   } } class C extends A {  public get id():number { return this._id } ...

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

3. 关于TS get/set重写问题 [ 94%]

...法前先做些处理 我父类A有个 public set a($value:number):void{ this._a = $value; } 然后继承父类后子类B重写 public set a($value:number):void {     this.aa();    super.a = $value;  } private aa():void{}   但是super是不能用到set/get中的,所以报错了,如果用this...

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

4. LayaAir引擎1.7 之后as转换js,出现问题 [ 94%]

... __getset(0,__proto,'visible',function(){ return Laya.superGet(SwatAniUI,this,'visible'); },function(value){ Laya.superSet(SwatAniUI,this,'visible',value); if (value) this._mcAni.removeFromParent(); }); //----Laya.superSet,没有这个方法吧?   1.7之前的转换 __getset(0,__proto,'visible'...

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

5. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 92%]

...tring, width: number, align: string = "left",padding: number=0) { super(); this.width = width; this.resFix = resFix; this._align = align; this._padding = padding; } /** * 字间距 */ public set padding(v: number){ if(v === this._padding){return;} this._padding = v; if(this.text){ this.createFnt(thi...

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

6. Laya2.7.0 beta cannon bug [ 91%]

... 微博 QZONE 微信 Chenyazhi 赞同来自: get angularVelocity() { if (this._btColliderObject) { var phtqua = this._btColliderObject.angularVelocity; this._angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z); } return this._angularVelocity; } get totalForce() { if (this._btColliderObject) { var...

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

7. 怎样获取浏览器地址传过来的GET参数 [ 91%]

...omuser"))                 {                     this.input_jjrcode.text = gets.fromuser;                 }             } 2017-03-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 govenlive ...

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

8. 绘制图形的BUG [ 91%]

...常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shape.width; } override public function get height():Number{ return _shape.height; } } } BUG2:package ui.test { import laya.display.Sprite; impo...

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

9. 求HTTP相关的文档或者例子谢谢了 [ 89%]

...on(e){}         __proto__.checkList=function(){             this.publicloader=new URLLoader();             this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables";             this.publicloader.addEventListener(/*iflash.events.Event.COMPL...

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

10. 微信飞机大战报错 [ 89%]

...= (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super);     var _proto = GameInfo.prototype;     _proto.reset = ...

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