Skip to content

DisplayObject.getLocalBounds method

DisplayObject › getLocalBounds

Unofficial

Returns the local bounds of the object.

Signature:

getLocalBounds(rect?: PixiRectangle): PixiRectangle

Parameters:

ParameterTypeDescription
rect?PixiRectangleRectangle to store bounds in.

Returns: PixiRectangle — The local bounds rectangle.