docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetCustomData

    TryGetCustomData<T>(string, out T)

    Try to find the data with the given name and deserialize it.

    Declaration
    public bool TryGetCustomData<T>(string fieldName, out T data) where T : IDictionaryConvertible, new()
    Parameters
    Type Name Description
    string fieldName

    The name of the data to retrieve.

    T data

    The deserialized data if it was found.

    Returns
    Type Description
    bool

    Returns true if the data was found and deserialized; returns false otherwise.

    Type Parameters
    Name Description
    T

    Any IDictionaryConvertible object that have a default constructor.

    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)