Skip to content

DisplayObject.getLocalBounds method

DisplayObject › getLocalBounds

Unofficial

Returns the local bounds of the object.

Signature:

getLocalBounds(rect?: PixiRectangle | undefined): PixiRectangle

Parameters:

ParameterTypeDescription
rect?PixiRectangle | undefinedRectangle to store bounds in.

Returns: PixiRectangleThe local bounds rectangle.