You see, I'm making a game in Unity but I don't know how to make the script to make a little cloud appear on top of the character, I already have the texture of the cloud but I want to make the cloud appear when I get very close and always look at the camera. Yes Do you know how to do it, could you explain the structure to me?
This would be one way to do it. As an example, I put the name of the tag as Activator, but you can also do it with a name, putting the name of the gameobject that activates it.
Code:
What this code does is simply turn the cloud on when you touch the Collider and turn it off when you exit. (You have to put the cloud on the canvas as an image) (Keep in mind putting the sprite limit, that is, where you want the cloud to activate) I hope it helps you. Greetings.