MonoBehaviour.OnRenderObject Manual     Reference     Scripting  
Scripting > Runtime Classes > MonoBehaviour

function OnRenderObject (queueIndex : int) : void


OnRenderObject is used to render your own objects using Graphics.DrawMesh or other functions.

The queueIndex specifies the render queue that is used to render the object. You can use the RenderBeforeQueues attribute to specify in which render queue you want to draw the object.