Client/C# with Unity

[정보] Unity Collider 클릭 감지

Ardmos :) 2021. 7. 1. 01:46

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