i’m trying to wright some code where when you click on an object it will destroy that object and force another object to preform an animation in 2d. all i need is something that allows me to trigger an event on click the same way it would when pressing a button and i can’t find that anywhere for some reason
@The8BitShadow
Hey The8BitShadow,
Try using the built-in function for clicks in 2D or 3D:
void OnMouseDown()
{
// Play animation here
}
Tell me if this helps!