docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    The index of the target Spline in the Splines array.

    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

    The index of the target Spline in the Splines array.

    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.

    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)