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

function OnRenderObject (queueIndex : int) : void

Description

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.