文档

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static void CollectElements(IEnumerable<GraphElement> elements, HashSet<GraphElement> collectedElementSet, Func<GraphElement, bool> conditionFunc)

Parameters

The enumerable of graph elements to select from.

collectedElementSet

The set of matching graph elements.

A function that determines whether a graph element is added to the set of matching graph elements.