docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultItem

    This class contains a pair of data, a GameItemDefinition Hash and an int for quantity. These are used to setup the DefaultItems in a CollectionDefinition.

    Inheritance
    object
    DefaultItem
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class DefaultItem

    Constructors

    Name Description
    DefaultItem(int, int)

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

    Properties

    Name Description
    definitionHash

    The Hash of the GameItemDefinition to use.

    quantity

    The starting quantity of the Item instance once setup.

    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)