rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()
这个错误信息的具体含义我还不太清楚。它出现以后会不停的增长。
在Unity官方论坛里找到不少相同问题的帖子。已经作为bug向官方提交,地址是http://issuetracker.unity3d.com/issues/camera-with-depth-only-or-dont-clear-throws-error-when-image-effects-are-applied
以下是bug内容:
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
目前临时的解决方法是,将Editor的布局Layout改回默认设置,错误信息将不再出现。