unity4.x_error(一)

Unity3d 4.xx以上版本容易出现的bug:

如下:

 

解决方案1:

it seems to be related to calling SetActive(bool) on the GameObject containing the GUI code. However - the result is different depending on the context.

- Disable GUI object in Start() of another object: error happens immediately
- Same but yield a frame in Start(): same result
- Disable GUI object in Update() of another object: error happens immediately
- Disable GUI object via Inspector: error happens immediately
- Disable GUI object via non-MonoBehaviour code later in game's lifecycle: works until you strike a key on the keyboard then error occurs

解决方案2:

        保存场景,然后重启。问题解决!

温馨提示:

      通过上面的方法还没有解决Bug,那就不用管它了。它对我们的程序是没有什么影响的!

结束语:

enjoy!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值