Author Topic: 2D GUI disappear when switching camera  (Read 2966 times)

Jeffrey

  • Guest
2D GUI disappear when switching camera
« on: May 29, 2012, 05:09:15 AM »
Hi,there are some trouble when i using NGUI, help me please.
i have one 2D GUI, there are some sprite icons. and there are two more camera in the scene.one for character view, and one for panorama. it will switch between character camera and panorama camera. but the 2d gui icon will disappear after switch camera. but the sprite can still trigger OnClick() method, just can not see them. why?

i use free version NGUI. is this the trouble?

sorry about my english.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2D GUI disappear when switching camera
« Reply #1 on: May 29, 2012, 01:50:36 PM »
The camera used by the UI needs to have the highest depth of the 3 cameras.

Jeffrey

  • Guest
Re: 2D GUI disappear when switching camera
« Reply #2 on: May 29, 2012, 09:01:48 PM »
Oh yes, my bad, thank you. BTW, i do love NGUI, you did a great job.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2D GUI disappear when switching camera
« Reply #3 on: May 30, 2012, 12:23:10 AM »
:)