OnMouseDown
Tutorial
Beginner
5 Mins
Overview
Overview
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
Topics we'll cover
Language
English
Recommended Unity Versions
4 and Above
Tutorial
OnMouseDown