docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPropertyValue

    GetPropertyValue(string, string)

    Get the property with the given propertyKey of the item with the given itemId.

    Declaration
    Property GetPropertyValue(string itemId, string propertyKey)
    Parameters
    Type Name Description
    string itemId

    The item's identifier.

    string propertyKey

    The property's identifier.

    Returns
    Type Description
    Property

    The property's value.

    Exceptions
    Type Condition
    ArgumentException

    If either itemId or propertyKey is null, empty or whitespace.

    InventoryItemNotFoundException

    If there is no item with the given itemId.

    PropertyNotFoundException

    If there is no property with the given propertyKey on the item.

    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)