Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: gg67 on July 18, 2014, 06:16:53 AM

Title: How to handle multiple in-game 3D UIs
Post by: gg67 on July 18, 2014, 06:16:53 AM
Hey there,

I plan on having some for of NGUI UI above each player's avatar. However, I'm not sure the best way to go about this as it seems that every NGUI widget must be a child of the UIRoot object. Should I be using multiple UIRoots (I've read multiple places you don't recommend this)? Should I just update the UI positions manually while they are all a child a UIRoot?

Whats the best way to do something like this?

Thanks
Title: Re: How to handle multiple in-game 3D UIs
Post by: ArenMook on July 18, 2014, 07:00:10 AM
I've answered this yesterday, and a day before.

UIRoot is optional. All you need is a UIPanel.

1. New game object.
2. Attach UIPanel, scale it so it's not huge (0.01, 0.01, 0.01)
3. Widgets go under it.