Description
The Filter
property of the NodeQuery
struct in the Editor.NodeEditor
namespace provides a read-only list of FilterPart
objects. This list represents the filters applied to a node query, allowing you to understand and manipulate the criteria used to filter nodes within a graph.
Usage
To access the Filter
property, you need an instance of the NodeQuery
struct. The property is read-only, meaning you can retrieve the list of filters but cannot modify it directly. Use this property to inspect the filters applied to a node query.
Example
// Assuming you have a NodeQuery instance named nodeQuery
IReadOnlyList<Editor.NodeEditor.FilterPart> filters = nodeQuery.Filter;
// Iterate through the filters
foreach (var filter in filters)
{
// Process each filter part
Console.WriteLine(filter.ToString());
}