COVID-19 Support:
We’re providing all users three months of complimentary access to Unity Learn Premium, from March 19 to June 20, 2020.
Just log in to start learning.

OnMouseDown

Tutorial
Beginner
5 Mins
Overview
Details
Your progress
Also included in
Summary
How to detect mouse clicks on a Collider or GUI element.
This tutorial is included in the Beginner Scripting project.
Previous: GetAxis
Next: GetComponent
Recommended Unity versions
4.x and Above
Topics we'll cover
Industry
Language
English
Tutorial
OnMouseDown
1
OnMouseDown