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.
阅读时间1 分钟最后更新于 1 个月前
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. |