Description
The Order
property of the SerializedProperty
class in the Sandbox namespace is an integer that determines the order in which properties are displayed or processed. This property is virtual, allowing derived classes to override its behavior if necessary.
Usage
Use the Order
property to specify the sequence in which properties should appear, particularly in user interfaces or serialization processes. A lower value indicates a higher priority, meaning the property will appear earlier in the sequence.
Example
// Example of setting the Order property
SerializedProperty myProperty = new SerializedProperty();
myProperty.Order = 1; // Sets the order to 1, making it a high priority property
// Example of getting the Order property
int orderValue = myProperty.Order;
// Use orderValue to determine the display or processing order