docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetProperty

    TryGetProperty(string, out Property)

    Try to get the value of the property with the given key.

    Declaration
    public bool TryGetProperty(string key, out Property property)
    Parameters
    Type Name Description
    string key

    Identifier of the property to get the value of.

    Property property

    The value of the searched property, if found.

    Returns
    Type Description
    bool

    Returns true if a property with the given key exists on this item; returns false otherwise.

    Exceptions
    Type Condition
    NullReferenceException

    If this item has been discarded.

    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)