Class PortFilter
Search filter that filters out entries that aren't compatible with the provided port.
Inheritance
object
PortFilter
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.ScriptGraph.Editor.NodeSearch
Syntax
public class PortFilter : ISearchFilter
Constructors
PortFilter(ScriptGraphPort)
Declaration
public PortFilter(ScriptGraphPort port)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphPort | port |
Methods
Apply(IEnumerable<SearchTreeEntry>)
Returns a tree consisting of the entries that are compatible with the provided port.
Declaration
public List<SearchTreeEntry> Apply(IEnumerable<SearchTreeEntry> tree)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T><UnityEditor.Experimental.GraphView.SearchTreeEntry> | tree | The original tree. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T><UnityEditor.Experimental.GraphView.SearchTreeEntry> | The tree with only the compatible entries. |