2016. 2. 22. 05:46
1
2
3
4
5
6
7
8
9
10
11
12
private UnityEngine.EventSystems.EventSystem _eventSystem;
 
void Start () {
    _eventSystem = GameObject.Find("EventSystem").GetComponent<UnityEngine.EventSystems.EventSystem>();
}
void OnMouseOver () {
    if(_eventSystem.IsPointerOverEventSystemObject()) {
    // we're over a UI element... peace out
    return;
   }
}
 
cs


Posted by 시리시안

댓글을 달아 주세요