Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AntLewis on September 19, 2013, 07:23:36 AM

Title: Moving the UI camera
Post by: AntLewis on September 19, 2013, 07:23:36 AM
Hey guys, I'm interested in moving my camera along a path in my front end. Is it advisable to move the entire UI Root (the root of the UI)  via a tween? If so, any particular hierarchy/structure I should use?

Thanks in advance.
Title: Re: Moving the UI camera
Post by: OnlineCop on September 19, 2013, 08:18:19 AM
Are you using the same camera to display your HUD (menus, buttons, etc.) as your other stuff, or do you have your HUD drawn over the top of a second camera?

Typically, I've moved my world camera and then have my UICamera with my 2D GUI elements drawn on top of them. That way, nothing from the 3D camera "clips" my 2D stuff. But your setup may be different.
Title: Re: Moving the UI camera
Post by: AntLewis on September 19, 2013, 08:23:03 AM
Hey thanks for the response. Yes this camera displays my front end button/interface.
Title: Re: Moving the UI camera
Post by: ArenMook on September 19, 2013, 04:08:43 PM
The "moving" camera should be your game camera, which is different from your UI camera.