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

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

11. 请问node 在destroy的时候 不发出事件是否有什么特殊原因吗 [ 88%]

...LayaPatch.Enable_NodeDestroyEvent = function(){ var oldDestroy = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你直接在销毁的时候派发一...

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

12. 1.5.0 LayaAir IDE发布UI资源缺失! [ 87%]

...anelUI,'ui.abc.ABCPanelUI',_super);         var __proto__=ABCPanelUI.prototype;         __proto__.createChildren=function(){                          laya.ui.Component.prototype.createChildren.call(this);             this.createView(ABCPanelUI.uiView);      ...

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

13. 请问laya中js如何继承自己写的类 [ 86%]

... var t1 = (function () { function t1(b) { this.b = b; } //父类方法a t1.prototype.a = function(){ console.log(this.b.x+""+this.b.y); } return t1; }());   ========================= /* * t2继承父类t1 */ var t2 = (function () { function t2() { t2.super(); } t2.prototype.a = function(){ console....

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

14. 有人遇到GetType 的问题吗? laya2.0 [ 86%]

...: 可以尝试一下,打开laya.physics.js   搜索 box2d.b2BroadPhase.prototype.UnBufferMove找到   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { a = this.m_moveBuffer.indexOf(a); this.m_moveBuffer[a] = null } ;  替换为:   box2d.b2BroadPhase.prototype.UnBufferMove = function...

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

15. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 86%]

... - 1] == null) attrs.pop(); } }; let $bufferRecreateResource = Laya.Buffer.prototype['recreateResource']; Laya.Buffer.prototype['recreateResource'] = function() { $bufferRecreateResource.call(this); if (this._glBuffer) { this._glBuffer.deleted = false; } }; let $bufferDisposeResource = Laya.Buffer.p...

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

16. ts继承后,代码压缩的问题 [ 85%]

...is && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p] } ; return function(d, b) { extendStatics(d, b); functio...

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

17. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 84%]

...是否移动,有点多余了 //初始化你预先设置的参数 ModeKey.prototype.init = function () { console.log(this.moveKey, this.layer, this.moveMax) this.moveKey.on(Laya.Event.MOUSE_DOWN, this, this.downFun); //记录一开始小圆点的位置,方便鼠标弹起的时候自动返回开...

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

18. 分包后, 资源加载问题 [ 84%]

...loading100,'loading100',_super); console.log("kk6") var __proto=loading100.prototype; console.log("kk7") __proto.cleanMe=function(){ this.load.destroy(true); } console.log("kk8") loading100.FINISH="FN"; console.log("kk9") return loading100; })(Sprite) //class ui.loadingjzaUI extends laya.ui.View var...

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

19. as3代码编译错误.100%重现,有测试代码.结果影响很大. [ 83%]

...c(super.x,super.y, now); 被编译成addFootPrintMagic(laya.display.Sprite.prototype.x,_super.prototype.y,now); 下面是我写的测试代码,也被编译错了. trace(super.x,super.y); 被编译成了console.log(laya.display.Sprite.prototype.x,Laya.superGet(GameUnit,this,'y'));   而且我附件...

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

20. 说的的新版本更新的问题呢 [ 82%]

...框架也用laya的substr   原生: color.substr(0,0) -> ''; String.prototype.substr = Laya.__substr : color.substr(0,0) -> '#FFFFFF'   至于我只要用react 就会报错 react.201605251128.js?t=1491660786863:formatted:7527Uncaught Error: Minified exception occurred; use the non-minifie...

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