RenderBeforeQueues Manual     Reference     Scripting  
Scripting > Attributes > RenderBeforeQueues
RenderBeforeQueues Class, inherits from Attribute

Attribute defining in which render queues OnRenderObject will be called.

See Also: Render queues, MonoBehaviour.OnRenderObject.

// Call OnRenderObject before rendering opaque and transparent objects
@RenderBeforeQueues(1000, 2000)
function OnRenderObject (queue : int) {
// do some custom rendering...
}

Constructors
RenderBeforeQueues

Define in which render queues OnRenderObject will be called.