{!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 Picker | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Picker

    Picker(IList, Func<TItemType>, Func<TTitleType>, Action<TItemType, int>, Action<TTitleType, IEnumerable<int>>, Action<TItemType, int>, int[])

    Default constructor.

    Declaration
    public Picker(IList items, Func<TItemType> makeItemFunc = null, Func<TTitleType> makeTitleFunc = null, Action<TItemType, int> bindItemFunc = null, Action<TTitleType, IEnumerable<int>> bindTitleFunc = null, Action<TItemType, int> unbindItemFunc = null, int[] defaultIndices = null)
    Parameters
    Type Name Description
    IList items

    The items collection.

    Func<TItemType> makeItemFunc

    The function used to create a Picker item.

    Func<TTitleType> makeTitleFunc

    The function used to create a Picker title.

    Action<TItemType, int> bindItemFunc

    The function used to bind a Picker item.

    Action<TTitleType, IEnumerable<int>> bindTitleFunc

    The function used to bind a Picker title.

    Action<TItemType, int> unbindItemFunc

    The function used to unbind a Picker item.

    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)