docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SerializedPropertyUtility

    Contains specialized utility functions for creating SerializedObject and SerializedProperty objects from SplineContainer, Spline, and SplineData<T>.

    Inheritance
    object
    SerializedPropertyUtility
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Splines
    Assembly: solution.dll
    Syntax
    public static class SerializedPropertyUtility

    Methods

    Name Description
    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.

    GetEmbeddedSplineDataProperty(SerializedProperty, EmbeddedSplineDataType, string)

    Create a SerializedProperty for a SplineData<T> value embedded in a Spline class. These are keyed collections of SplineData<T> that are managed by the Spline instance. See GetOrCreateIntData(string), GetOrCreateFloatData(string), etc.

    GetEmbeddedSplineDataProperty(SplineContainer, int, EmbeddedSplineDataType, string)

    Create a SerializedProperty for a SplineData<T> value embedded in a Spline class. These are keyed collections of SplineData<T> that are managed by the Spline instance. See GetOrCreateIntData(string), GetOrCreateFloatData(string), etc.

    GetSerializedObject(SplineContainer)

    Create a SerializedObject for a SplineContainer. This value is cached.

    GetSplineSerializedProperty(SerializedObject, int)

    Create a SerializedProperty for a Spline at the requested index in the Splines.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)