Unity Learn home
View Tutorial Content

Detecting Mouse Clicks

Tutorial
Beginner
+10 XP
5 Mins
(170)
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
Select your Unity version
Last updated: November 01, 2022
2021.3
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.x
4.x
Language
English
Also included in
Detecting Mouse Clicks