Author Topic: Prefab labels don't appear (SOLVED)  (Read 2075 times)

Brendtron5000

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Prefab labels don't appear (SOLVED)
« 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?
« Last Edit: September 08, 2013, 11:05:02 PM by Brendtron5000 »

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Prefab labels don't appear
« Reply #1 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?

Brendtron5000

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Prefab labels don't appear (SOLVED)
« Reply #2 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!