x


DrawMesh always drawn before gameobjects

On my GUI camera I use Graphics.DrawMesh to draw an overlay (text) and I have a background image is just a gameobject with a textured plane. Although the shader used for the overlay material is tagged to be in the overlay queue and the shader used in background material is tagged to be in the background queue it seems that the overlay still gets drawn first. How can I get the DrawMesh stay in order?

I'm calling Graphics.DrawMesh from LateUpdate by the way.

more ▼

asked Feb 12 '10 at 04:28 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
6.4k 20 26 70

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Can you make use of OnRenderObject to get around this?

more ▼

answered Feb 19 '10 at 01:56 PM

andeeee gravatar image

andeeee ♦
1.4k 3 6 18

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1667
x1366
x65

asked: Feb 12 '10 at 04:28 AM

Seen: 1443 times

Last Updated: Feb 12 '10 at 04:28 AM