Author Topic: Moving objects outside UIRoot breaks anchoring  (Read 12096 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Moving objects outside UIRoot breaks anchoring
« Reply #15 on: April 02, 2014, 06:50:17 PM »
I advise the former. Have your 3D game object instantiate its own UI info element, and parent it to the appropriate "HUD Root" object. That's what I did in Windward. All ships create their own HUD element, and since they are the ones that create it, they get to keep a reference to it. When a ship gets destroyed, it also destroys the HUD element. When the health needs to be updated, the reference is present so there is no need to go searching for it.

Ana

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Moving objects outside UIRoot breaks anchoring
« Reply #16 on: April 02, 2014, 07:05:02 PM »
Thank you for the suggestion.
I'll try doing that and see if I run into any additional problems.
Thank you for the help.