Unity3D中中 rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()错误的原因及解决方法...

首先说明下:这种错误只在Unity3D发生,不会在打包的游戏中发生。

官方解释

Camera with image effects throws error when certain game view aspect ratios are used

To reproduce:
1. Create a camera with Clear Flags set to "Depth Only" or "Don't Clear"
2. Attach an image effect to the camera
3. Set the game window scale to 16:9
4. Enter game mode. Try resizing the game window
5. "rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()" appears in the console

Does not occur with version 4.2.2f1
Seems to be related mostly to the aspect ration of the game view and the image effects.

does not occur if game view is undocked

 

大概是说

1。创建一个相机设置为"Depth Only"或"Don't Clear"
2。附加摄像机的图像效果
3。游戏窗口范围设置为16:9
4。进入游戏模式。调整游戏窗口

 

解决方法

在game面板中分辨率调成free,也许会好。。-  -

或许 目前临时的解决方法是,将Editor的布局Layout改回默认设置,错误信息将不再出现。

转载于:https://www.cnblogs.com/dawn-cn/p/4218603.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值