Skip to content

DisplayObject.getBounds method

DisplayObject › getBounds

Unofficial

Returns the bounds of the object.

Signature:

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

Parameters:

Parameter Type Description
skipUpdate? boolean | undefined Whether to skip the update.
rect? PixiRectangle | undefined Rectangle to store bounds in.

Returns: PixiRectangleThe bounds rectangle.