I’m confused on when I should use one vs. the other. I know that OnMouseDown is its own function, while the Input.GetMouseButtonDown(0) can be used within other functions, but what is the advantage of using one over the other?
Depends if you want to do event-driven code (OnMouseDown) or if you prefer polling (Input.GetMouseButtonDown())
However, they are NOT equivalent. Read the documentation carefully!
2 Likes
Thanks, I will.