docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetOrCreateObjectData

    GetOrCreateObjectData()

    Returns a SplineData<T> for Key and Type. If an instance matching the key and type does not exist, a new entry is appended to the internal collection and returned. Note that this is a reference to the stored SplineData<T>, not a copy. Any modifications to this collection will affect the Spline data.

    Declaration
    public SplineData<Object> GetOrCreateObjectData()
    Returns
    Type Description
    SplineData<Object>

    A SplineData<T> of the requested type.

    Exceptions
    Type Condition
    InvalidCastException

    An exception is thrown if the requested SplineData<T> does not match the EmbeddedSplineDataType.

    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)