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

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

1. 【求助】关于Cannot read property 'visible' of undefined问题 [ 100%]

【求助】关于Cannot read property 'visible' of undefined问题 我的代码是这样子的: private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new ...

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

2. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 97%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

3. 引擎报错问题 [ 80%]

引擎报错问题 我新创建了一个微信小游戏项目,运行就会提示我"Cannot read property 'visible' of undefined",但问题是我没有任何地方用到Visible,包括加载我都注释掉,还是这样! 2018-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

4. 3D场景资源释放 [ 77%]

3D场景资源释放 根据官网技术文档里面LayaAir3D之资源释放做了一个实例,发现lm格式的资源无法被释放,报以下错误 Cannot read property 'removeResource' of null。 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

5. 关于3D场景资源释放问题 [ 74%]

关于3D场景资源释放问题 释放后的场景被再次加载,会报错。Uncaught TypeError: Cannot read property 'visible' of null 附件是一个实例。 附件 : --> TestTriFaces.zip 2017-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

6. 2d项目RenderSprite3D出错,laya1.7.16 [ 73%]

2d项目RenderSprite3D出错,laya1.7.16 Uncaught TypeError: Cannot read property 'visible' of null TypeError: Cannot read property 'visible' of null at RenderSprite3D.__proto._childs (http://xxxx/game/bin/h5/Main.m ... 576:30) at Sprite.__proto.render (http://xxxx/game/bin/h5/Main.m ... 575:43) a...

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

7. 场景切换造成的FPS下降的优化思路请教 [ 72%]

场景切换造成的FPS下降的优化思路请教 现在不同场景都是继承的Sprite,原来是通过addChild和removeChild直接管控不同场景的显示和隐藏的,但是发现发布到手机后FPS会瞬间掉到个位数,然后再恢复到原来一样。今天想到能否使用vis...

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

8. 照着官方文档写的 Dialog 报错? [ 68%]

照着官方文档写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, ...

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

9. 为啥我在批量removeself 会报错卡死 [ 68%]

为啥我在批量removeself 会报错卡死 override public function removeSelf():Node { this.scaleX = 1; this.scaleY = 1; this.alpha = 1; this.pos(0,0); this.filters = []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; ...

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

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

把场景中的对像删除,就会报错 Uncaught TypeError: 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 (...

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