정확히는 마우스 포인터가 UI위에 있는지 확인하는 함수!


1
2
3
4
5
6
7
8
9
10
11
12
void Update()
{
    if (Input.GetMouseButtonUp(0)//클릭
    {
        //마우스 포인터가 UI위에 있지않으면
        if(UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject() == false)
        {
            ...
        }
    }
}
 
cs


블로그 이미지

stuban

ㅇ.ㅇ

,