docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetBuiltInData

    TryGetBuiltInData<T>(string, out T)

    Try to find the data of the given built-in data type with the given name and deserialize it.

    Declaration
    public bool TryGetBuiltInData<T>(string fieldName, out T data) where T : IComparable, IConvertible, IComparable<T>, IEquatable<T>
    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 built-in data type from C# except char.

    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)