CollectElements(IEnumerable<GraphElement>, HashSet<GraphElement>, Func<GraphElement, bool>)
Retrieves the set of elements that match a specified condition. The matching elements are selected from an enumerable of graph elements.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
public static void CollectElements(IEnumerable<GraphElement> elements, HashSet<GraphElement> collectedElementSet, Func<GraphElement, bool> conditionFunc)
Parameters
The enumerable of graph elements to select from.
The set of matching graph elements.
A function that determines whether a graph element is added to the set of matching graph elements.