Author Topic: NGUI issues with 2D Toolkit  (Read 2292 times)

singh029

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 28
    • View Profile
NGUI issues with 2D Toolkit
« on: April 16, 2014, 03:12:15 AM »
Hi! Im having some issues with NGUI in my project with 2D Toolkit
Im trying to get it to work with a 9:16 Portrait mode.

I have the settings for 2D Toolkit working but when i add NGUI it messes with things.
Theres a smaller NGUI camera view inside the 2D Toolkit camera view. And then theres also the regular sized NGUI camera view.

Ive attached some images of my setup on a sample project.
Please help me adjust the settings for the NGUI camera and UIRoot.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI issues with 2D Toolkit
« Reply #1 on: April 16, 2014, 10:58:13 AM »
Pink outline shows you the bounds of panels, not cameras.

singh029

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: NGUI issues with 2D Toolkit
« Reply #2 on: April 16, 2014, 11:02:38 AM »
Oh i see. I just moved the panel out of the game view.
What should the ngui camera settings be set as?
Is it safe to have both cameras draw stuff simultaneously?
« Last Edit: April 16, 2014, 11:11:25 AM by singh029 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI issues with 2D Toolkit
« Reply #3 on: April 16, 2014, 11:17:07 AM »
The drawing is never simultaneous. One camera is always drawn before the other, based on their depth setting.

singh029

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: NGUI issues with 2D Toolkit
« Reply #4 on: April 17, 2014, 09:52:44 AM »
Oh i see. thanks!
Also, the "Error" with the pink outline was fixed when i clicked on the gizmos button in the game view.  ::)