public readonly record struct PortFilterWhat a search will accept: a node type with a port a dragged wire could land on.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The direction is the one being looked for, not the one dragged from. A wire dragged off an output is looking for an input, so a drag from an output produces a filter whose Direction is Input. Naming it after the far end is what stops every call site from having to remember to invert it.
Dynamic accepts every vector, which is what makes a Lerp offered for a colour as well as for a float — the same rule Accepts applies to a wire that has already been made.
Fields and properties (2)
public PortKind KindWhat the wire carries, or what the port it left wants.
public PortDirection DirectionWhich way the port the search is looking for faces.
Methods (2)
public PortFilter(PortKind Kind, PortDirection Direction)What a search will accept: a node type with a port a dragged wire could land on.
public bool Accepts(PortDefinition port)Whether a port would take, or produce, what the filter is looking for.
Used by (5)
- NodeGraphViewVixen.Editor.NodeGraph
- NodeSearchVixen.Editor.NodeGraph
- NodeSearchPopupVixen.Editor.NodeGraph
- SearchTestsVixen.Editor.NodeGraph.Tests
- ViewTestsVixen.Editor.NodeGraph.Tests