docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateInventory

    CreateInventory(string, string, string, int, Completer)

    Request to create a new inventory with the given id.

    Declaration
    void CreateInventory(string definitionId, string inventoryId, string displayName, int gameItemId, Completer completer)
    Parameters
    Type Name Description
    string definitionId

    Id of the definition used to create the inventory.

    string inventoryId

    Id to give to the created inventory.

    string displayName

    Friendly name of the created inventory that will be displayed.

    int gameItemId

    Id of the item use by GameItemLookup.

    Completer completer

    The handle to settle the promise with.

    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)