Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Brendtron5000 on September 08, 2013, 05:58:58 PM

Title: Prefab labels don't appear (SOLVED)
Post by: Brendtron5000 on September 08, 2013, 05:58:58 PM
I'm using AddChild to add a label prefab under a panel. I can see the outline of the label and I can see it in the object tree, but I can't see the text. If I drag one of these prefabs under the panel manually, it shows up fine. If I compare a programatically added prefab with one that I've dragged in, all the attributes look the same. Is there any reason why my AddChild prefab wouldn't appear?
Title: Re: Prefab labels don't appear
Post by: ENAY on September 08, 2013, 10:46:27 PM
Two things to check.

- In the Inspector window, is the Layer settings the same as the area you are creating it in?

- Are you positioning this label using transform.Position instead of transform.localPosition?
Title: Re: Prefab labels don't appear (SOLVED)
Post by: Brendtron5000 on September 08, 2013, 11:05:45 PM
Just figured it out two second ago -- I needed to uncheck Static for the container panel. Thanks for the reply though!