16
Other Packages / Re: NGUI: HUD Text
« on: September 29, 2012, 07:31:49 AM »
Thanks. Using that method now but still no text appears.
If I pause the game, and use the Widget tool to create a label under the Hud object it appears just fine. However all the HUDText (Clone) prefabs that appear under that display nothing.
I've tried everything. Pausing the game and moving the transforms of the HUdText or sub text object that gets greated, enabling and disabling components. Nothing works. It only works if I setup a quick test scene and don't spawn anything using prefabs.
As I said, even zooming right in on the editor and there is nothing visible. It's like the text is blank.
I notice that if I pause the game immediately after issueing hudText.Add the little label that gets created under the hudtext is disabled. I've tried enabling this too and still nothing appears. Completely lost here.
I've attached a screenshot of what it looks like running. My other GUI elements work and as stated above manually creating a label also works:
If I pause the game, and use the Widget tool to create a label under the Hud object it appears just fine. However all the HUDText (Clone) prefabs that appear under that display nothing.
I've tried everything. Pausing the game and moving the transforms of the HUdText or sub text object that gets greated, enabling and disabling components. Nothing works. It only works if I setup a quick test scene and don't spawn anything using prefabs.
As I said, even zooming right in on the editor and there is nothing visible. It's like the text is blank.
I notice that if I pause the game immediately after issueing hudText.Add the little label that gets created under the hudtext is disabled. I've tried enabling this too and still nothing appears. Completely lost here.
I've attached a screenshot of what it looks like running. My other GUI elements work and as stated above manually creating a label also works: