docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FilterWindow.GroupElement

    A meta element used to group several elements in the list or tree.

    Inheritance
    object
    FilterWindow.Element
    FilterWindow.GroupElement
    Implements
    IComparable
    Inherited Members
    FilterWindow.Element.level
    FilterWindow.Element.content
    FilterWindow.Element.name
    FilterWindow.Element.CompareTo(object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    [Serializable]
    public class FilterWindow.GroupElement : FilterWindow.Element, IComparable

    Constructors

    GroupElement(int, string)

    Creates a new FilterWindow.GroupElement

    Declaration
    public GroupElement(int level, string name)
    Parameters
    Type Name Description
    int level

    The group level.

    string name

    The display name for the group.

    See Also
    FilterWindow.Element

    Fields

    scroll

    The current scroll position in the UI.

    Declaration
    public Vector2 scroll
    Field Value
    Type Description
    Vector2
    See Also
    FilterWindow.Element

    selectedIndex

    The current selected index in the group.

    Declaration
    public int selectedIndex
    Field Value
    Type Description
    int
    See Also
    FilterWindow.Element

    Properties

    ShouldDisable

    Returns true if this group and its content should appear disabled in the UI.

    Declaration
    public virtual bool ShouldDisable { get; }
    Property Value
    Type Description
    bool
    See Also
    FilterWindow.Element

    WantsFocus

    Requests focus for the element.

    Declaration
    public bool WantsFocus { get; protected set; }
    Property Value
    Type Description
    bool
    See Also
    FilterWindow.Element

    Methods

    HandleKeyboard(Event, FilterWindow, Action)

    Handles custom keyboard events on this group.

    Declaration
    public virtual bool HandleKeyboard(Event evt, FilterWindow window, Action goToParent)
    Parameters
    Type Name Description
    Event evt

    The event.

    FilterWindow window

    A reference to the parent FilterWindow.

    Action goToParent

    The action to execute if a "back" action is triggered in the UI.

    Returns
    Type Description
    bool

    true if the builtin events should execute for this group, false otherwise.

    See Also
    FilterWindow.Element

    OnGUI(FilterWindow)

    A custom drawing method for this group.

    Declaration
    public virtual bool OnGUI(FilterWindow sFilterWindow)
    Parameters
    Type Name Description
    FilterWindow sFilterWindow

    A reference to the parent FilterWindow.

    Returns
    Type Description
    bool

    true if the builtin drawing function should execute for this group, false otherwise.

    See Also
    FilterWindow.Element

    Implements

    IComparable

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)

    See Also

    FilterWindow.Element
    In This Article
    Back to top
    Copyright © 2025 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)