Method EmbeddedSplineDataField
EmbeddedSplineDataField(SplineContainer, int, EmbeddedSplineDataType, string)
Creates a field for an embedded SplineData<T> property. Embedded SplineData<T> is stored in the Spline class and can be accessed through a string key value. Use this function to expose an embedded SplineData<T> through the Inspector.
Declaration
public static bool EmbeddedSplineDataField(SplineContainer container, int index, EmbeddedSplineDataType type, string key)
Parameters
Type | Name | Description |
---|---|---|
SplineContainer | container | The SplineContainer that holds the Spline target. |
int | index | |
EmbeddedSplineDataType | type | The EmbeddedSplineDataType type of data stored in the embedded SplineData<T> |
string | key | A string value used to identify and access embedded SplineData<T>. |
Returns
Type | Description |
---|---|
bool | True if the property has children, is expanded, and includeChildren was set to false. Returns false otherwise. |
EmbeddedSplineDataField(GUIContent, SplineContainer, int, EmbeddedSplineDataType, string)
Creates a field for an embedded SplineData<T> property. Embedded SplineData<T> is stored in the Spline class and can be accessed through a string key value. Use this function to expose an embedded SplineData<T> through the Inspector.
Declaration
public static bool EmbeddedSplineDataField(GUIContent label, SplineContainer container, int index, EmbeddedSplineDataType type, string key)
Parameters
Type | Name | Description |
---|---|---|
GUIContent | label | An optional prefix label. |
SplineContainer | container | The SplineContainer that holds the Spline target. |
int | index | |
EmbeddedSplineDataType | type | The EmbeddedSplineDataType type of data stored in the embedded SplineData<T> |
string | key | A string value used to identify and access embedded SplineData<T>. |
Returns
Type | Description |
---|---|
bool | True if the property has children, is expanded, and includeChildren was set to false. Returns false otherwise. |