{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Constructor Dropdown | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Dropdown

    Dropdown()

    Default constructor.

    Declaration
    public Dropdown()

    Dropdown(IList, Action<DropdownItem, int>, Action<DropdownItem, IEnumerable<int>>, int[])

    Construct a Dropdown UI element with a provided dynamic collection of items.

    Declaration
    public Dropdown(IList items, Action<DropdownItem, int> bindItemFunc = null, Action<DropdownItem, IEnumerable<int>> bindTitleFunc = null, int[] defaultIndices = null)
    Parameters
    Type Name Description
    IList items

    An items collection.

    Action<DropdownItem, int> bindItemFunc

    The binding function used to populate display data for each item.

    Action<DropdownItem, IEnumerable<int>> bindTitleFunc

    The binding function used to populate display data for the title.

    int[] defaultIndices

    The selected index by default.

    In This Article
    Back to top
    Copyright © 2023 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)