0
\$\begingroup\$

Does phaser have any function that returns the width of the text or if not, how can I center text inside rectangle I've drawn?

Thanks!

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

It's just Text.width. Text objects have most the same properties as Sprites, so you can set their anchor, rotate them, etc.

\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .