Author Topic: A display problem with multiple UIPanel (Unity "Scene" window Only)  (Read 3894 times)

chansey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
I found that if there are multiple panels in the scene, the second panel's widget could not be shown in unity "Scene" window. (But in "Game" window, it works fine.....)

I have used "align with view to selected" with camera, but  the problem still exists. If I move view in the "Scene" window, occasionally it could be shown......   :-\

(Example 7 could reproduce this problem)

I haven't been able to find a similar problem in google and forum.

I use Unity 3.5.6f4 and NGUI 2.2.6 and I have snapshot a image for this problem.

Thanks for the help!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: A display problem with multiple UIPanel (Unity "Scene" window Only)
« Reply #1 on: December 22, 2012, 11:40:51 AM »
This has something to do with the angle of the scene view. Remember that since your drawcalls are relatively close together, if you're not on the exact right angle, the one that's "closest" to the camera will be drawn on top.

Essentially, you can't count on the scene view.

chansey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: A display problem with multiple UIPanel (Unity "Scene" window Only)
« Reply #2 on: December 22, 2012, 12:05:37 PM »
Thanks for replying quickly.

For example 7:

I found if I set the UIPanel (Clipped View) transform Z to -100 (PS: -1, -10 has no effect), the widgets in this panel will shows fine.
(But they are too big in "Scene" window, since scene view camera is perspective)

If widgets on "Scene" window could not be shown or size is wrong... how to position the widgets exactly and visually ?

(I hope NGUI very like photoshop)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: A display problem with multiple UIPanel (Unity "Scene" window Only)
« Reply #3 on: December 23, 2012, 06:45:58 AM »
Your camera is in perspective mode. Note that your camera gizmo in the top right corner doesn't display "Back" keyword underneath?

Click the green triangle, then click the left grey triangle.

chansey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: A display problem with multiple UIPanel (Unity "Scene" window Only)
« Reply #4 on: December 23, 2012, 11:51:01 AM »
After adjust these triangle in camera gimoz, It's work fine!!

Thank you very much! :)