docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InventoryItem

    An InventoryItem that goes into an Inventory. InventoryItems should only exist inside Inventories.

    Inheritance
    object
    GameItem
    BaseItem<InventoryDefinition, Inventory, InventoryItemDefinition, InventoryItem>
    InventoryItem
    Inherited Members
    GameItem.displayName
    GameItem.id
    GameItem.hash
    GameItem.definition
    GameItem.categories
    GameItem.GetDetails()
    GameItem.AddDetail<T>()
    GameItem.GetDetail<T>()
    GameItem.RemoveDetail<T>()
    GameItem.GetStatInt(string)
    GameItem.GetStatInt(int)
    GameItem.GetStatFloat(string)
    GameItem.GetStatFloat(int)
    GameItem.SetStatInt(string, int)
    GameItem.SetStatInt(int, int)
    GameItem.SetStatFloat(string, float)
    GameItem.SetStatFloat(int, float)
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public class InventoryItem : BaseItem<InventoryDefinition, Inventory, InventoryItemDefinition, InventoryItem>

    Properties

    Name Description
    inventory

    The Inventory that this InventoryItem belongs to.

    quantity

    Quantity contained in this Inventory for this InventoryItem.

    Methods

    Name Description
    SetQuantity(int)

    Sets the quantity of this InventoryItem.

    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)