GetPooled(Rect, Rect)
Gets an event from the event pool, and initializes it with the specified values. Use this method instead of instancing new events. Use Dispose() to release events back to the event pool.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static GeometryChangedEvent GetPooled(Rect oldRect, Rect newRect)
Parameters
Returns
Type | Description |
|---|---|
| GeometryChangedEvent | An initialized event. |