Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: slway07 on March 01, 2015, 08:43:05 PM

Title: Is it okay to put more than one UI Root component?
Post by: slway07 on March 01, 2015, 08:43:05 PM
Hi, I am working on a project with NGUI.

And I have 2 and 3 UI Root components in a scene.

From this link(http://www.tasharen.com/ngui/docs/class_u_i_root.html#details),

it says " If you use it, be sure to NOT use UIOrthoCamera at the same time."

But I have at least 2 UIOrthoCamera on it.

Also, I have two perspective cameras for Effects and another OrthoCamera for system popups.

It can occur any problems? Anyone helps me out please.
Title: Re: Is it okay to put more than one UI Root component?
Post by: ArenMook on March 03, 2015, 05:48:33 PM
UIOrthoCamera is a component that goes on the camera if UIRoot isn't used. Why would you have two of them, and together with UIRoot to boot? That doesn't make any sense. Did you just mean orthographic cameras? If so, that's fine. The documentation talks about actual scripts, not orthographic cameras.

To answer your question, yes, you can have more than one UIRoot in the scene.
Title: Re: Is it okay to put more than one UI Root component?
Post by: slway07 on March 09, 2015, 03:56:33 AM
Thanks ArenMook : )