Class SerializedPropertyUtility
Contains specialized utility functions for creating SerializedObject and SerializedProperty objects from
Spline
Inherited Members
Namespace: UnityEditor .Splines
Assembly: Unity.Splines.Editor.dll
Syntax
public static class SerializedPropertyUtility
Methods
ClearPropertyCache()
Clear cached SerializedProperty objects. This is automatically called on every selection change. Use this function if you need to insert or remove properties that may have been cached earlier in the frame.
Declaration
public static void ClearPropertyCache()
GetEmbeddedSplineDataProperty(SerializedProperty, EmbeddedSplineDataType, string)
Create a SerializedProperty for a Spline
Declaration
public static SerializedProperty GetEmbeddedSplineDataProperty(SerializedProperty splineProperty, EmbeddedSplineDataType type, string key)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
splineProperty | The SerializedProperty for the target Spline. |
Embedded |
type | |
string | key | A string value used to identify and access a Spline |
Returns
Type | Description |
---|---|
Serialized |
A SerializedProperty for the requested Spline |
GetEmbeddedSplineDataProperty(SplineContainer, int, EmbeddedSplineDataType, string)
Create a SerializedProperty for a Spline
Declaration
public static SerializedProperty GetEmbeddedSplineDataProperty(SplineContainer container, int index, EmbeddedSplineDataType type, string key)
Parameters
Type | Name | Description |
---|---|---|
Spline |
container | The Spline |
int | index | The index of the Spline in the Splines array. |
Embedded |
type | |
string | key | A string value used to identify and access a Spline |
Returns
Type | Description |
---|---|
Serialized |
A SerializedProperty for the requested Spline |
GetSerializedObject(SplineContainer)
Create a SerializedObject for a Spline
Declaration
public static SerializedObject GetSerializedObject(SplineContainer container)
Parameters
Type | Name | Description |
---|---|---|
Spline |
container | The Spline |
Returns
Type | Description |
---|---|
Serialized |
A SerializedObject for the requested Spline |
GetSplineSerializedProperty(SerializedObject, int)
Declaration
public static SerializedProperty GetSplineSerializedProperty(SerializedObject splineContainer, int splineIndex)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
splineContainer | The Spline |
int | splineIndex | The index of the Spline in the Splines array. |
Returns
Type | Description |
---|---|
Serialized |
A SerializedProperty for the requested Spline, or null if not found. |