docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ICustomAssetTargetFieldPicker

    Interface for the picker an AssetTargetField opens when its pick button is pressed.

    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public interface ICustomAssetTargetFieldPicker
    Remarks

    The field itself knows nothing about where assets come from, so it does not ship a default implementation the way ColorField does. Assign customPicker with something that can enumerate candidates — an ObjectPicker hosted in a Popover or a FloatingWindow is the intended host.

    Methods

    Show(AssetTargetField, Action<AssetReference>, AssetReference, Type)

    Show the picker.

    Declaration
    void Show(AssetTargetField owner, Action<AssetReference> onValueChanging, AssetReference initialValue, Type type)
    Parameters
    Type Name Description
    AssetTargetField owner

    The field that requested the picker.

    Action<AssetReference> onValueChanging

    Callback invoked as the user moves through candidates. It sends a ChangingEvent<TValue> from the field; the field commits the final value itself.

    AssetReference initialValue

    The value assigned to the field when the picker opened.

    Type type

    The type filter, or null when the field accepts anything.

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