Unity Learn home
View Tutorial Content

OnMouseDown

Tutorial
Beginner
+0 XP
5 Mins
(164)
Summary
如何检测碰撞体或 GUI 元素上的鼠标点击。 本教程包含在“ 初级编程 ”项目中。 上一教程: GetAxis 下一教程: GetComponent
Select your Unity version
Last updated: November 17, 2023
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
lang_zh_cn
Also included in
OnMouseDown