Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: viqtor on March 18, 2014, 08:05:32 AM

Title: Web Player - NGUI error
Post by: viqtor on March 18, 2014, 08:05:32 AM
Hello all,

When I change the player to Web, i get the following error:
"transform.position assign attempt for 'Atlas' is not valid. Input position is { -Infinity, Infinity, 0.000000 }.
UnityEngine.Transform:set_position(Vector3)
UIPanel:UpdateDrawCalls() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1201)
UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:965)"

Why?
Title: Re: Web Player - NGUI error
Post by: ArenMook on March 18, 2014, 09:55:06 PM
I don't know, something in your scene has an invalid position. Check the transforms of all the panels in your scene.
Title: Re: Web Player - NGUI error
Post by: Quakeulf on June 06, 2014, 08:20:50 AM
I have checked the transforms in my scene too are all at 0 and the scale is at 1 but the moment I add a label with text to a child object of the UICamera in the UI Root I get this:

transform.position assign attempt for 'moolboran128_0' is not valid. Input position is { -Infinity, Infinity, 0.000000 }.
UnityEngine.Transform:set_position(Vector3)
UIPanel:UpdateDrawCalls() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1369)
UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1128)

I also get it with the other fonts I am using too.

However, this does not happen with instances outside the UI Root. I can use labels on any non-UI Root objects and it will work fine.

Even deleting the old labels and adding new ones doesn't solve it.

This only started happening after upgrading from an older version of NGUI to 3.6.2.
Title: Re: Web Player - NGUI error
Post by: Quakeulf on June 06, 2014, 12:50:18 PM
To fix this we created a new UI Root and copied over all the things that broke in the old UI Root and it fixed the problem. This did however take us a few days to figure out since we couldn't find anything on it online.
Title: Re: Web Player - NGUI error
Post by: DuckOfDoom on June 16, 2014, 10:00:29 AM
I had the same problem. I can happen if something sets "Manual Height" of UIRoot to zero. In our case we had a script that was doing that if it failed to detect editor screen size.