docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Choose

    Choose(string, StringList, int)

    Invite the user to choose one value between multiple choice

    Declaration
    public int Choose(string message, StringList values, int defaultValue = 0)
    Parameters
    Type Name Description
    string message

    Message to display

    StringList values

    Possible values to choose

    int defaultValue

    Default value index

    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)