BeforeRenderOrderAttribute
Use this BeforeRenderOrderAttribute when you need to specify a custom callback order for Application.onBeforeRender.
Read time 3 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Method)]public class BeforeRenderOrderAttribute : Attribute
Remarks
Application.onBeforeRender will reorder all registered events recievers and call them in order, from lowest to highest, based on this attribute. No attribute represents an order of 0.
Constructors
Constructor | Description |
|---|---|
| BeforeRenderOrderAttribute(System.Int32) | When applied to methods, specifies the order called during Application.onBeforeRender events. |
Properties
Property | Description |
|---|---|
| order | The order, lowest to highest, that the Application.onBeforeRender event recievers will be called in. |