I just started learning NGUI. Now I have the following Hierarchy:
- UI Root
|-- Camera
|-- Panel
|-- |-- Main
|-- |-- |-- Button Settings
|-- |-- |-- Button Ranking
|-- |-- Settings MODAL
|-- |-- |-- Control - Background
|-- |-- |-- Control - Simple Text
|-- |-- Ranking MODAL
|-- |-- |-- Control - Background
|-- |-- |-- Control - Simple Text
I have three questions about this:
- Is this the right way to set up my hierarchy? I want to stay with one panel to keep the performance on its best
- The Button Settings should fade in the Settings Modal and the Button Ranking should fade in the Ranking Modal. What is the best way to set this up? I can't figure out what would be the best way. The background should be faded in, the other controls (like the text) shoudl have another cool effect.
- The background is a black overlay on top of the game. As mentioned, aach time a modal is opened, this background should fade in. But, there could be a lot more modals (8 or so). Should I duplicate the background for each of this modal. Or can I have one instance of the background?