'2015/03/08'에 해당되는 글 1건
- 2015.03.08 ugui 레이캐스트 ui에서는 막기.
if(Input.GetMouseButtonDown(0))
{
bool isPointerOVerGame = UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject();
Debug.Log(isPointerOVerGame);
}
UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject();
현재 마우스 위치가 ui 상에 있으면 true 반환
없으면 false 반환.
레이를 막아버리는 근본적인 방법을 사용해야지 좋지 않을까 싶음.
boxcollider을 붙인다던가..
'유니티 > Note' 카테고리의 다른 글
| 유니티 svn 사용 시 해야될 것 (0) | 2015.06.22 |
|---|---|
| 유니티 기본 생성 스크립트 변경 방법 (0) | 2015.04.27 |
| ugui 레이캐스트 ui에서는 막기. (0) | 2015.03.08 |
| Unity3d sqlite 사용하기. (0) | 2015.03.03 |
| 유니티 2D 경계선 검은색 생길때 처리하는 방법 (0) | 2015.02.04 |
| unity3d Can Transition To Self (0) | 2015.01.14 |
Trackback 0 And
Comment 0


