Author Topic: Web Player - NGUI error  (Read 5666 times)

viqtor

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Web Player - NGUI error
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Web Player - NGUI error
« Reply #1 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.

Quakeulf

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Web Player - NGUI error
« Reply #2 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.

Quakeulf

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Web Player - NGUI error
« Reply #3 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.

DuckOfDoom

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 10
    • View Profile
Re: Web Player - NGUI error
« Reply #4 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.