docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStatDefinitions

    GetStatDefinitions()

    Returns an array of all StatDefinition instances of this catalog.

    Declaration
    public StatDefinition[] GetStatDefinitions()
    Returns
    Type Description
    StatDefinition[]

    An array of all StatDefinition instances in this catalog.

    Remarks

    Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetStatDefinitions(ICollection<StatDefinition>) instead.

    GetStatDefinitions(ICollection<StatDefinition>)

    Fills the given collection with all StatDefinitions in this catalog. Note: this returns the current state of all StatDefinitions.
    The list will be cleared and updated with current data.

    Declaration
    public void GetStatDefinitions(ICollection<StatDefinition> statDefinitions)
    Parameters
    Type Name Description
    ICollection<StatDefinition> statDefinitions

    The list to clear and fill with all StatDefinitions.

    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)