Author Topic: Anchors not working on children  (Read 3423 times)

optimisticmonkey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 15
    • View Profile
Anchors not working on children
« on: July 01, 2014, 03:40:21 PM »
Aren -

I have a sprite that is dynamically created from a prefab and sized at runtime by manually setting the height and width.

The sprite has two children, which are labels.

The labels have anchors set using the sprite as a target.

I manually call UpdateAnchors() on the children after setting the sprite, but it seems to have no effect?

Thanks for you help

optimisticmonkey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 15
    • View Profile
Re: Anchors not working on children
« Reply #1 on: July 01, 2014, 03:47:28 PM »
Nevermind - the font I used on the labels was not big enough....  everything working as expected ;-)