docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetItemDefinition

    GetItemDefinition(int)

    Gets the requested item definition based on the given hash.

    Declaration
    protected override BaseItemDefinition<InventoryDefinition, Inventory, InventoryItemDefinition, InventoryItem> GetItemDefinition(int itemDefinitionHash)
    Parameters
    Type Name Description
    int itemDefinitionHash

    The hash of the item definition we want.

    Returns
    Type Description
    BaseItemDefinition<InventoryDefinition, Inventory, InventoryItemDefinition, InventoryItem>

    Reference to the definition, or null if not available.

    Overrides
    BaseCollection<InventoryDefinition, Inventory, InventoryItemDefinition, InventoryItem>.GetItemDefinition(int)
    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)