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

function OnRenderObject (queueIndex : int) : void

Description

OnRenderObject is used to render your own objects using Graphics.DrawMeshNow 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.