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

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

31. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 73%]

...的继承的示范: ```javascript var HttpRequestExtension = (function (_super) { function HttpRequestExtension() { HttpRequestExtension.__super.call(this); } Laya.class(HttpRequestExtension, 'HttpRequestExtension', _super); var __proto = HttpRequestExtension.prototype; __proto.send = function (ur...

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

32. 射线BUG [ 72%]

...我用的是1.7.1JS版的function MousePickingScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.cam...

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

33. 自定义UI导致编辑器无显示 [ 72%]

... • 2017-02-06 16:57 我现在js这样写的: var LabelAtlas=(function(_super){ function LabelAtlas(url,clipX,clipY){ LabelAtlas.__super.call(this); (clipX===void 0)&& (clipX=1); (clipY===void 0)&& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class(LabelAtla...

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

34. js继承模式 [ 72%]

...on() { Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProp...

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

35. 报错,这不是个构造函数 "StartPage is not a constructor" [ 71%]

...ctor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya....

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

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

37. [临时解决]bug?加载sk问题 [ 69%]

...概就是下面这样 // Test01是ui的逻辑类 var Test01 = (function (_super) {     function Test01() {         Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪         this.numPreloadCalls = 0; // 执行预加载         this.preload(this.onP...

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

38. 关于实例化 动画特效.efc 文件的问题 [ 69%]

...时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefined   请问我应该怎么实例化 effectAnimation.efc 这种模板?   2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

39. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 69%]

...次数 如果想三连跳 改成 3 即可 this.jumpCountMax = 2; Player.__super.call(this); this.init(); } //玩家动作 //跑 Player.RUN = "player_run"; //飞 Player.FLY = "player_fly"; //暂时没有用到的动作 Player.HERT = "player_hert"; //跳 Player.JUMP = "player_jump"; //状态 Player.DI...

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

40. 微信小游戏渲染开放域卡顿处理 [ 69%]

...前修改有效,兼容ui         constructor() {             super();             this.once(Laya.Event.DISPLAY, this, this.onCreate);             this.once(Laya.Event.UNDISPLAY, this, this.onDestroy);         }         /**          * 加入场景          */...

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