docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor DefaultItem

    DefaultItem(int, int)

    Basic constructor that takes in fields for all variables this class uses.

    Declaration
    public DefaultItem(int definitionHash, int quantity)
    Parameters
    Type Name Description
    int definitionHash

    The GameItemDefinition Hash to use.

    int quantity

    The starting quantity of this Item.

    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)