docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetObjectData

    TryGetObjectData(string, out SplineData<Object>)

    Retrieve a SplineData<T> reference for if it exists. 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 bool TryGetObjectData(string key, out SplineData<Object> data)
    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.

    SplineData<Object> data

    The output SplineData<T> if the key is found.

    Returns
    Type Description
    bool

    True if the key and type combination are found, otherwise false.

    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)