The way NGUI draws things is by placing them on depth of 3000 and higher. So if you happen to draw a transparent object with the UI camera, its placement is going to be undetermined. You shouldn't be drawing non-UI objects with your UI camera. If you do, make sure they are using a shader that's using a higher render queue. Can I ask what you're trying to do with your UI there, and why you have that image drawn without using UITexture to do so?
I don't think I understand. I have a monitor in my scene and I'm using NGUI for the 'screens' on that monitor.
So I added a UICamera script to my main camera (just as you suggested when I bought NGUI a couple of month ago).
This is the structure of the monitor:
- GameObject monitor
- UIRoot
- UIPanel
- Empty GameObject
- UIButton
- UISprite
- UILabel
- UIButton
- UISprite
- UILabel
etc.
The UILabel has a Dynamic font (Arial).
This worked fine until now. I've updated to 3.0.6f6 and now only the dynamic fonts are in front of everything else.
I don't have any transparent objects in front of the monitor in the scene.
But if I understand you correctly I can't do this setup anymore? Or is the Dynamic font the only problem in this setup?