Author Topic: Is it okay to put more than one UI Root component?  (Read 5809 times)

slway07

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Is it okay to put more than one UI Root component?
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is it okay to put more than one UI Root component?
« Reply #1 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.

slway07

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Is it okay to put more than one UI Root component?
« Reply #2 on: March 09, 2015, 03:56:33 AM »
Thanks ArenMook : )