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

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

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

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

32. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 70%]

...//背景 this.bg = null; //背景右边补丁 this.rightBg = null; Floor.__super.call(this); } //事件名称 //超过屏幕一定值出发新的floor事件 Floor.OUT_COMPLETE = "floor_out_complete"; //整个地板都不在屏幕里面事件 Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示...

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

33. HTMLDIVElement设置innerHTML时报错 [ 69%]

...ion(){ if (this._width)return this._width; return this.contextWidth; },[b]_super.prototype._$set_width[/b]);此次出问题的版本为/** *获取对象的宽 */ __getset(0,__proto,'width',function(){ if (this._width)return this._width; return this.contextWidth; },[b]function(value){ var changed=fal...

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

34. laya中js 如何实现Sprite类继承 [ 69%]

...his.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 --> 分享 ...

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

35. List滚动条问题 [ 68%]

...t item里的button图片显示不出来   item代码如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiao...

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

36. 射线BUG [ 67%]

...我用的是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

37. js继承模式 [ 66%]

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

38. ape.pivot(55, 72);啥意思呀 [ 65%]

...stance.start(5, 500);这里面的5和500什么意思? layabox js中 的__super,call()是什么意思 这个写法是什么意思,能否解释一下,谢谢 camera的orthographicVerticalSize属性是什么意思? 文档上写的太简洁了! 控制台显示node --debug-brk=27489 --nolazy Deb...

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

39. 带吗里三个等号是啥意思 [ 64%]

...5和500什么意思? ape.pivot(55, 72);啥意思呀 layabox js中 的__super,call()是什么意思 请问这个报错是什么意思 怎样把一个精灵从父节点完全删除 就是读取不到这个精灵的意思 otherBody [首次设置有效]关节的连接刚体。首次设置有效是什...

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

40. [临时解决]bug?加载sk问题 [ 64%]

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

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