Text#getBounds()

getBounds(matrix) → {Phaser.Rectangle}

Returns the bounds of the Text as a rectangle.
The bounds calculation takes the worldTransform into account.

Parameters
Name Type Description
matrix Phaser.Matrix

The transformation matrix of the Text.

Returns

The framing rectangle

Source code: gameobjects/Text.js (Line 1631)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.