docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetGameItemDefinitions

    GetGameItemDefinitions()

    Returns an array of all game item definitions in this catalog.

    Declaration
    public GameItemDefinition[] GetGameItemDefinitions()
    Returns
    Type Description
    GameItemDefinition[]

    An array of all game item definitions in this catalog.

    GetGameItemDefinitions(List<GameItemDefinition>)

    Fills the given array with all game item definitions in this catalog. Note: this returns the current state of game item definitions. To ensure that there are no invalid or duplicate entries, the 'gameItemDefinitions' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog.

    Declaration
    public void GetGameItemDefinitions(List<GameItemDefinition> gameItemDefinitions)
    Parameters
    Type Name Description
    List<GameItemDefinition> gameItemDefinitions

    The list to clear and fill with all game item definitions.

    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)