その先にあるもの…

NGUI 객체 피킹 본문

프로그래밍/Unity

NGUI 객체 피킹

specialJ 2013. 12. 5. 17:18

하나의 UI를 끌어서 다른 UI로 올려 놓을 때 



UICamera.currentTouch.clickNotification = UICamera.ClickNotification.BasedOnDelta;
Ray ray = UICamera.currentCamera.ScreenPointToRay(UICamera.currentTouch.pos);
			
GameObject obj = GameObject.FindWithTag( "tagChrInfo" );

RaycastHit Hit;
if( obj.collider.Raycast( ray, out Hit, 10 ) )
{
...
}

'프로그래밍 > Unity' 카테고리의 다른 글

unity animator event  (0) 2013.12.05
NGUITools.AddChild  (0) 2013.12.05
Prefab SetActive(false)시 스크립트 접근이 안되는 경우1  (0) 2013.12.05
AssetBundle  (0) 2013.10.29
Object Drag & Picking  (0) 2013.06.04
Comments