Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dmkaner on January 09, 2017, 11:29:39 PM

Title: NGUI 2dUI components acting up when camera is orthographic
Post by: dmkaner on January 09, 2017, 11:29:39 PM
I am trying to add NGUI components such as their button prefabs, but every time I add them into the scene and the NGUI camera is automatically added, on clicking the button (or any of the the components added for that matter) a duplicate of it will appear very quickly somewhere else in game. It is very quickly, glitch like, and happens every time the button is clicked/un-clicked. This is with me creating a brand new project, importing in NGUI, and simply adding the button into the scene. I notice the effect is not there if I change the camera from orthographic to perspective, but I would like to keep the camera in orthographic mode because it is a 2d game. Any ideas what the problem is?  It is really bugging me because everything seems to be identical to the setup of the tutorials but for some reason this still happens.
Title: Re: NGUI 2dUI components acting up when camera is orthographic
Post by: ArenMook on January 13, 2017, 10:15:48 PM
I'm not aware of this issue. What are the exact steps I can follow to reproduce it?

NGUI camera gets added only if the UIRoot is needed. This is done if you bring in a prefab into the scene on a layer that doesn't have an existing UI camera to draw it.