ForEach
Convenience overload, shorthand for Build().ForEach().
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
ForEach<T>(List<T>, Func<T, T>)
Convenience overload, shorthand for Build().ForEach().
public void ForEach<T2>(List<T2> result, Func<T, T2> funcCall)
Parameters
Each return value will be added to this list.
The function to be invoked with each matching element.
ForEach<T>(Func<T, T>)
Convenience overload, shorthand for Build().ForEach().
public List<T2> ForEach<T2>(Func<T, T2> funcCall)
Parameters
The function to be invoked with each matching element.
Returns
Type | Description |
|---|---|
| List<T> |
ForEach(Action<T>)
Convenience overload, shorthand for Build().ForEach().
public void ForEach(Action<T> funcCall)
Parameters
The function to be invoked with each matching element.