Menu Close

OnMouseDown

Above is unity tutorial. Below is my screencast on youtube.

What I learned

I learned how to use OnMouseDown when clicking on objects. Using OnMouseDown reacts when the mouse clicks on the collider or a text box that contains the code. In my example, I used Debug.Log and made it say “I clicked on the door!” when ever I click on it.

Leave a Reply

Your email address will not be published. Required fields are marked *