docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasProperty

    HasProperty(string)

    Check if this item has a property for the given key.

    Declaration
    public bool HasProperty(string key)
    Parameters
    Type Name Description
    string key

    The identifier of the property to look for.

    Returns
    Type Description
    bool

    true if this item has a property with the given key; false otherwise.

    Exceptions
    Type Condition
    ArgumentException

    If the key parameter is null, empty, or whitespace.

    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)