Skip to content

DisplayObject.getBounds method

DisplayObject › getBounds

Unofficial

Returns the bounds of the object.

Signature:

getBounds(skipUpdate?: boolean, rect?: PixiRectangle): PixiRectangle

Parameters:

ParameterTypeDescription
skipUpdate?booleanWhether to skip the update.
rect?PixiRectangleRectangle to store bounds in.

Returns: PixiRectangle — The bounds rectangle.