Class SplineIndexAttribute
Attribute used to make an integer variable show in the Inspector as a popup menu with spline choices relative to a ISplineContainer.
Inherited Members
Namespace: UnityEngine.Splines
Assembly: Unity.Splines.dll
Syntax
public class SplineIndexAttribute : PropertyAttribute
Constructors
SplineIndexAttribute(string)
Creates a new SplineIndexAttribute with the name of a variable that references an ISplineContainer.
Declaration
public SplineIndexAttribute(string splineContainerProperty)
Parameters
Type | Name | Description |
---|---|---|
string | splineContainerProperty | The name of the field that references an ISplineContainer.
It is recommended to pass this value using |
Fields
SplineContainerProperty
The name of the field that references an ISplineContainer.
Declaration
public readonly string SplineContainerProperty
Field Value
Type | Description |
---|---|
string |