docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create(string, string)

    Creates a new InventoryItemDefinition.

    Declaration
    public static InventoryItemDefinition Create(string id, string displayName)
    Parameters
    Type Name Description
    string id

    The Id this InventoryItemDefinition will use.

    string displayName

    The display name of the InventoryItemDefinition.

    Returns
    Type Description
    InventoryItemDefinition

    Reference to the newly made InventoryItemDefinition.

    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)