If Action Occurs, Text Appears

In my project, when the main character entity collects a giant candy, I would like text to appear saying that the player won. However, I do not know how to code this. What code can I use for this to happen?

Hi @MN1 and welcome!

You can enable an entity with your UI, if the player entity collide with the candy entity. On the page below you find information you need.

https://developer.playcanvas.com/en/tutorials/collision-and-triggers/

1 Like