Skip to content

DisplayObject.getLocalBounds method

DisplayObject › getLocalBounds

Unofficial

Returns the local bounds of the object.

Signature:

getLocalBounds(rect?: PixiRectangle | undefined): PixiRectangle

Parameters:

Parameter Type Description
rect? PixiRectangle | undefined Rectangle to store bounds in.

Returns: PixiRectangleThe local bounds rectangle.