Author Topic: Rendering Issue  (Read 4979 times)

AnKOu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Rendering Issue
« on: May 18, 2015, 08:48:39 AM »
Hello,

I have an issue with NGUI...

It is easily understandable in the 3 images in attachment. The first one is a view from the editor which is good. The second image is a view from the play mode, it is good too. The third image is what I get when I stop playing and go back to the editor. Everything is messed up. This is pretty annoying to work with.

Until now, the two ways I found to clean everything are :

- to disable the root panel in the hierarchy, to launch the play mode, to enable the root panel, to stop playing and to enable the root panel again.

OR

- When I modify a script and I go back in the editor, after the update is done, everything appears as he should.


I am using Unity 4.6.1

Have you any idea how to solve this ?

Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Rendering Issue
« Reply #1 on: May 22, 2015, 03:37:51 PM »
Better question is what version of NGUI are you using?

Also all that pink points that you have a shader problem there. Pink means Unity failed to compile a shader...

As for things looking messed up, check your anchoring. Without details regarding what else you are doing, there isn't much I can suggest.

AnKOu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Rendering Issue
« Reply #2 on: June 01, 2015, 04:36:53 AM »
Hello, thank you for your answer.

I am using NGUI 3.7.3

All the pink is the background color. It is useful to easily find hole in 3d models I work with.

I add two images of the inspector showing how my UI Root and a messed up UIPanel are defined. There is a screenshot of my hierarchy too. The GameObject named "Pages" hasn't any component and is used to group all the panels.

Does it help you?

Thank you.
 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Rendering Issue
« Reply #3 on: June 01, 2015, 09:07:02 PM »
1. You have more than one panel on the same depth. You need to use unique depths.
2. You need to update your NGUI. Your version of NGUI is like half a year older than your version of Unity.