Class FilterWindow
An utility window used to list and filter a set of elements, as seen in the inspector when clicking on the "Add Component" button.
Inherited Members
Namespace: UnityEditor .Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[InitializeOnLoad]
public class FilterWindow : EditorWindow
Fields
DefaultHeight
The default height for the window.
Declaration
public static readonly float DefaultHeight
Field Value
Type | Description |
---|---|
float |
DefaultWidth
The default width for the window.
Declaration
public static readonly float DefaultWidth
Field Value
Type | Description |
---|---|
float |
Methods
Show(Vector2, IProvider)
Shows the filter window using the given provider.
Declaration
public static bool Show(Vector2 position, FilterWindow.IProvider provider)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | The position to show the filter window at. |
Filter |
provider | The provider of items for the filter window. |
Returns
Type | Description |
---|---|
bool | Returns true if the window is shown, false otherwise. |