QueryBlock
A query block is the visual element of a query node in a query.
Read time 8 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
- Inherits from: VisualElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
public abstract class QueryBlock : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
Remarks
In example, will be a query filter block with QueryBlock.name equal to , QueryBlock.value equal to and the QueryBlock.op equal to .
shader=litshaderlit=Properties
Property | Description |
|---|---|
| context | Search context that composed this query block. |
| name | Name of the block. |
| op | Filter operator (i.e. :, =, <, >, etc.) of the block if any. |
| source | Query builder source that compose this block. |
| value | Value of the block. |
Methods
Method | Description |
|---|---|
| ToString | Returns the text filter of the block. |