docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetEmbeddedSplineDataProperty

    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.

    Declaration
    public static SerializedProperty GetEmbeddedSplineDataProperty(SplineContainer container, int index, EmbeddedSplineDataType type, string key)
    Parameters
    Type Name Description
    SplineContainer container

    The SplineContainer that contains the target Spline.

    int index

    The index of the Spline in the Splines array.

    EmbeddedSplineDataType type

    The EmbeddedSplineDataType.

    string key

    A string value used to identify and access a SplineData<T>.

    Returns
    Type Description
    SerializedProperty

    A SerializedProperty for the requested SplineData<T>, or null if not found.

    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.

    Declaration
    public static SerializedProperty GetEmbeddedSplineDataProperty(SerializedProperty splineProperty, EmbeddedSplineDataType type, string key)
    Parameters
    Type Name Description
    SerializedProperty splineProperty

    The SerializedProperty for the target Spline.

    EmbeddedSplineDataType type

    The EmbeddedSplineDataType.

    string key

    A string value used to identify and access a SplineData<T>.

    Returns
    Type Description
    SerializedProperty

    A SerializedProperty for the requested SplineData<T>, or null if not found.

    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)