I was just wondering if it is possible to change the text size in the button type entity in Ursina. I haven't found anything like button1.text_scale = … anything is helpful. cheers.
Asked
Active
Viewed 101 times
1 Answers
1
Tou can get the Text that's parented to the button with .text_entity
. You can then transform that as you wish.
This is good if you just want to make it twice as big or something:
button1.text_entity.scale *= 2
If you want to set it to a specific size, you can set .world_scale
:
button1.text_entity.world_scale = .1

pokepetter
- 1,383
- 5
- 8