unity3d 中rect[2] <= rt->GetGLWidth() && rect[3] <= rt->GetGLHeight()错误的原因及解决方法
2014-08-03 23:41
836 查看
官方是这么解释的
http://issuetracker.unity3d.com/issues/camera-with-depth-only-or-dont-clear-throws-error-when-image-effects-are-applied?page=2#comments
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,也许会好。。- -
这个错误只在unity中发生,不会在打包出的游戏中发生
http://issuetracker.unity3d.com/issues/camera-with-depth-only-or-dont-clear-throws-error-when-image-effects-are-applied?page=2#comments
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,也许会好。。- -
这个错误只在unity中发生,不会在打包出的游戏中发生
相关文章推荐
- Unity3D中中 rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()错误的原因及解决方法
- u3d中 rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()错误的原因及解决方法
- 关于项目文件导入打开报:无法识别元素 <Target> 中的属性“Returns”错误解决方法
- 使用kxml2-min-2.3.0.jar时的错误解决方法:Missing stack map in: <init> at label: 79
- JSP 中使用<%@include%> 报 Duplicate local variable path 错误的解决方法
- 使用<a>标签提交action会执行两次后台方法的原因(反射机制小实例问题的解决)
- oracle安装后 tomcat启动报 Address already in use: JVM_Bind<null>:8080 错误 的几种解决方法
- 关于64位CentOS上ptrace报<linux/user.h> no such file 错误的解决方法
- 关于项目文件导入打开报:无法识别元素 <Target> 中的属性“Returns”错误解决方法
- 【转】QT#include <GL/gl.h>错误解决办法
- <错误: 程序中有游离的‘357’>的解决方法
- C++&nbsp;学习&nbsp;&lt;三&gt;&nbsp;:错误与解决方法
- WPF项目报 未能找到程序集“<程序集名>”错误的解决方法
- VC6.0编程用到#include <unistd.h>编译时出现的错误及解决方法
- JSP 使用<%@include%>报Duplicate local variable path 错误 解决方法
- VM8.0下安装遇到了问题“windows cannot read the<product key> setting from the unattend answer file”解决方法
- QC用例导入报错解决方法- Field < Subject > requires a value from the corresponding list
- # include <errno.h >查看错误代码errno是调试程序的一个重要方法。当Linux C API函数发生异常时,一般会将errno变量赋值一个整数,不同的值表示不同的含义,可以通过查看
- asp.net中,在客户端,加入<%=....%>代码时出现的问题解决方法
- iBatis查询时报"列名无效"或"找不到栏位名称"无列名的错误原因及解决方法