docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Inventory Item Definitions

    Overview

    An Inventory Item Definition is a catalog item providing static data for your item instances.

    It is the only item you can instantiate.

    Editor Overview

    Open the Inventory window by going to Window → Game Foundation → Inventory. The Inventory window will let you configure inventory item definitions.

    An overview of the Inventory Window

    The interface is similar to the other catalog items editor.

    (1) In the Mutable Properties section you can define a list of fields for the item instances to read and write at runtime.
    A mutable property must define:

    • A value type. The current supported type are long, double, bool and string.
    • A unique key for you to access the property at runtime.
    • A default value.

    Mutable Properties belong only to the definition they are declared into. This means you can use the same property key in different definitions with a different type if you want to.

    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)