Unity3d rect[2] = = Rt->getglwidth () && rect[3] = = Rt->getglheight () error causes and solutions

Source: Internet
Author: User

The first explanation : This error occurs only in Unity3d, not in packaged games.

Official explanation :

Camera with image effects throws error when certain game view aspect ratios is 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 is related mostly to the aspect ration of the game view and the image effects.

Does not occur if game view is undocked

I'm probably saying

1. Create a camera set to "Depth only" or "Don t Clear"
2. Image effects for additional cameras
3. The game window range is set to 16:9
4. Enter game mode. Adjust the game window

Workaround :

It might be nice to have the resolution tuned to free in the game panel. -  -

Perhaps the temporary workaround now is to change the layout of editor to the default setting, and the error message will no longer appear.

Unity3d rect[2] = = Rt->getglwidth () && rect[3] = = Rt->getglheight () error causes and solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.