Class FilterWindow.GroupElement
A meta element used to group several elements in the list or tree.
Implements
Inherited Members
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
Fields
scroll
The current scroll position in the UI.
Declaration
public Vector2 scroll
Field Value
Type | Description |
---|---|
Vector2 |
See Also
selectedIndex
The current selected index in the group.
Declaration
public int selectedIndex
Field Value
Type | Description |
---|---|
int |
See Also
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
WantsFocus
Requests focus for the element.
Declaration
public bool WantsFocus { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
See Also
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 |
|
See Also
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 |
|