OnMouseDown을 포함해 알맞은걸 골라 사용하시면 됩니다.
물론 콜라이더가 있어야합니다.
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnMouseDown.html
Unity - Scripting API: MonoBehaviour.OnMouseDown()
Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. Close
docs.unity3d.com
728x90
'Client > C# with Unity' 카테고리의 다른 글
[정보] Unity 블렌더를 이용해 내가 만든 3D지형에 딱 맞는 콜라이더를 씌우려면? (0) | 2021.12.04 |
---|---|
[정보] Unity inspector상에 Header, Range 설정하기 (0) | 2021.10.23 |
[Unity C#] String 줄바꿈 \n (0) | 2021.04.13 |
[정보] GetAxis, GetAxisRaw 차이. (0) | 2021.01.26 |
[정보]유니티 윈도우 저장파일 위치 ( Application.persistentDataPath, 등등 ) (0) | 2020.12.14 |