Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 10 days ago

Definition

public static GeometryChangedEvent GetPooled(Rect oldRect, Rect newRect)

Parameters

oldRect

The old dimensions of the element.

newRect

The new dimensions of the element.

Returns

Type

Description

GeometryChangedEventAn initialized event.