docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetOrCreateIntData

    GetOrCreateIntData(string)

    Returns a SplineData<T> for key. 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<int> GetOrCreateIntData(string key)
    Parameters
    Type Name Description
    string key

    The string key value to search for. Only one instance of a key value can exist in an embedded SplineData<T> collection, however keys are unique to each data type. The same key can be re-used to store float data and Object data.

    Returns
    Type Description
    SplineData<int>

    A SplineData<T> of the requested type.

    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)