docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetStatDefinitions

    GetStatDefinitions()

    Returns an array of all the StatDefinitionAsset instances in this catalog.

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

    An array of all StatDefinitionAsset instances.

    Remarks

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

    GetStatDefinitions(ICollection<StatDefinitionAsset>)

    Fills in the given target collection with all the StatDefinitionAsset instance of this catalog. The target collection is cleared before being populated.

    Declaration
    public int GetStatDefinitions(ICollection<StatDefinitionAsset> target = null)
    Parameters
    Type Name Description
    ICollection<StatDefinitionAsset> target

    The target container of all the StatDefinitionAsset instances.

    Returns
    Type Description
    int
    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)