Author Topic: How to render non-ui mesh between UI widget?  (Read 3287 times)

netics

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
How to render non-ui mesh between UI widget?
« on: October 15, 2013, 11:36:45 PM »

I am trying to draw some 3d mesh between sprites.

But there is no z-value that I can use.


The drawing order that I want is:

[Label-Background]
[Label-Text]
[3D Mesh]
[Other UIs]


But the drawing order that NGUI did is:

[Label-Background]
[3D Mesh]
[Label-Text]
[Other UIs]


I sorted all the widget by transform.z. but it doesn't work.

What should I do?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to render non-ui mesh between UI widget?
« Reply #1 on: October 16, 2013, 02:16:08 AM »
Render to texture, draw the texture as a part of your UI. You won't be able to draw a mesh in between of UI elements.