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

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

11. child被释放,导致渲染报错的问题 [ 90%]

child被释放,导致渲染报错的问题 报错如图所示,看堆栈是render方法调用_childs方法时,报错的原因应该是child的_style为空(附图已更新)原因很可能是因为child被释放了,但是在addChild和addChildAt的入口添加加入的子级是否被释放...

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

12. Laya api 中可能的bug [官方来看] [ 90%]

...调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z...

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

13. 在 list 的 box(render) 中添加 HTMLDivElemnt 组件 导致 IDE 卡死崩溃 IDE版本:2.12.0 [ 90%]

..."isOpen":true,     "isDirectory":true,     "isAniNode":true,     "hasChild":true,     "compId":2,     "child":[         {             "x":15,             "type":"List",             "searchKey":"List",             "props":{"width":"100","height":"100"},       ...

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

14. layaair ide 2.0.0 beta2 读取.lh文件报错 [ 89%]

... 0,    -1   ],   "scale":[    1,    1,    1   ]  },  "child":[   {    "type":"Sprite3D",    "props":{     "isStatic":false,     "name":"jacket_default"    },    "customProps":{     "layer":0,     "translate":[      0,      0,      0 ...

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

15. 坐标系原点 [ 89%]

...ite(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Sprite(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _parent.addChild(_child);就像上面那样,我需要在addChild的时候,_child默认在_parant的左下角~按上面的方法...

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

16. 关于gridSprite的疑问 [ 88%]

关于gridSprite的疑问 tiledMap中 取得maplayer后,在maplayer的 _childs中可以取得渲染的块数据:gridsprite.发现每个gridsprite的宽和高都是432,然后按照432的距离排列好所有的gridsprite. 第一个问题是,这个432是怎么来的,是引擎规定好的吗? ...

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

17. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 88%]

...ion initMatter():void { var gameWorld:Sprite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:true...

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

18. Node.prototype.removeChildren移除计数有问题 [ 88%]

Node.prototype.removeChildren移除计数有问题 直接看源码,此问题不管高低版本都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex &g...

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

19. 把场景中的对像删除,就会报错 [ 88%]

...r: Cannot read property 'visible' of null     at RenderSprite3D.__proto._childs (Main.max.js?r0.22069932534774384:33147)     at RenderSprite3D.__proto._graphics (Main.max.js?r0.22069932534774384:33079)     at NpcView.__proto.render (Main.max.js?r0.22069932534774384:54362)     at RenderSprite...

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

20. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 87%]

...r: Cannot read property 'visible' of null     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at RenderSprite3D.__proto._transform (laya.webgl.js:6730)     at Character.__proto.render (laya.core.js:15656)     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at RenderSpri...

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