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:

ParameterTypeDescription
skipUpdate?boolean | undefinedWhether to skip the update.
rect?PixiRectangle | undefinedRectangle to store bounds in.

Returns: PixiRectangleThe bounds rectangle.