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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.