docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetNames

    GetNames()

    Get a copy of the list of names as an array.

    Declaration
    public string[] GetNames()
    Returns
    Type Description
    string[]

    An array of strings containing all the names.

    GetNames(ICollection<string>)

    Populate a list of strings with all the names from this detail. Note: this returns the current state of names for this detail definition. To ensure that there are no invalid or duplicate entries, the list will always be cleared and 'recycled' (i.e. updated) with current data.

    Declaration
    public void GetNames(ICollection<string> list)
    Parameters
    Type Name Description
    ICollection<string> list

    The list to clear and fill with updated name data.

    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)