docs.unity.cn
    Show / Hide Table of Contents

    Interface FilterWindow.IProvider

    The interface to implement to populate the list or tree and traverse its elements.

    Namespace: UnityEditor.Rendering
    Syntax
    public interface IProvider

    Properties

    position

    The position of the window on screen.

    Declaration
    Vector2 position { get; set; }
    Property Value
    Type Description
    Vector2

    Methods

    CreateComponentTree(List<FilterWindow.Element>)

    Implement this method to populate the list or tree of elements.

    Declaration
    void CreateComponentTree(List<FilterWindow.Element> tree)
    Parameters
    Type Name Description
    List<FilterWindow.Element> tree

    The list to populate.

    GoToChild(FilterWindow.Element, Boolean)

    Implement this method to define the behavior when an item is selected.

    Declaration
    bool GoToChild(FilterWindow.Element element, bool addIfComponent)
    Parameters
    Type Name Description
    FilterWindow.Element element

    The selected element.

    Boolean addIfComponent
    Returns
    Type Description
    Boolean

    true if the window should close, false otherwise.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023