검색결과 리스트
글
UI버튼 클릭시 Input.GetMouseButton사용 중지하는법
유니티 C#
2020. 11. 12. 15:23
EventSystem.current.IsPointerOverGameObject() 함수를 사용하여 체크 가능
if (Input.GetMouseButton(0) && canShoot && !EventSystem.current.IsPointerOverGameObject())
EventSystem.current.IsPointerOverGameObject() 함수를 사용하여 체크 가능
if (Input.GetMouseButton(0) && canShoot && !EventSystem.current.IsPointerOverGameObject())