Description
The Index
property of the Surface
class represents an integer value that uniquely identifies a surface within the context of the Sandbox environment. This property is primarily used internally and is not intended for direct manipulation or serialization, as indicated by the HideAttribute
and JsonIgnoreAttribute
applied to it.
Usage
Since the Index
property is marked with HideAttribute
and JsonIgnoreAttribute
, it is not intended to be accessed or modified directly in typical usage scenarios. It is used internally by the Sandbox engine to manage and reference surfaces efficiently.
Example
// Accessing the Index property is not recommended as it is hidden and ignored in JSON serialization.
// It is used internally by the Sandbox engine.
// Example of accessing other properties of the Surface class:
Surface mySurface = new Surface();
string description = mySurface.Description;
float friction = mySurface.Friction;