how can change text in Phaser.GameObjects.Text. When one people join room no change text and i console text result is “(1/5)”, when second people join room object text change is :"(1/5)" and i console result is: “(2/5)”. i can’t understand, can anyone help me…
If quantity
is your Text object you should call
quantity.setText(text);
instead of
quantitiy.text = text;
Docs: https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Text.html#setText__anchor
1 Like
Thank you very much. I have use quantity.setText(text); but nothing change. Everything still like that two user join room but It show one user in room