1
NGUI 3 Support / Can you have two UI ROOT(2D) and two cameras?
« on: February 04, 2013, 11:18:03 PM »
HI,
I am using a UI Root(2D) with NGUI Camera to draw all layers and sprites for an object-layer based parallax scrolling 2D game (seen example from thinkscroller which indeed uses NGUI to draw sprites for such setup)
BUT I was thinking to separate pure UI elements like Score/Timers/Health,etc... to be on a different layer (NGUI layer) and have their own NGUI camera.
At the moment I have a NGUI Label on NGUI layer which is displayed by same camera that displays parallax scene.
Is it ok to create a New UI (from UI tool) which will come with his own UI Root(2D) - Camera - Panel... or is it the case that I can only have one UI Root(2D) in a scene?
Thanks
I am using a UI Root(2D) with NGUI Camera to draw all layers and sprites for an object-layer based parallax scrolling 2D game (seen example from thinkscroller which indeed uses NGUI to draw sprites for such setup)
BUT I was thinking to separate pure UI elements like Score/Timers/Health,etc... to be on a different layer (NGUI layer) and have their own NGUI camera.
At the moment I have a NGUI Label on NGUI layer which is displayed by same camera that displays parallax scene.
Is it ok to create a New UI (from UI tool) which will come with his own UI Root(2D) - Camera - Panel... or is it the case that I can only have one UI Root(2D) in a scene?
Thanks