//targetposition을 게임카메라의 viewPort 좌표로 변경. 

        Vector3 pos_Player = Camera.main.WorldToViewportPoint(GameMgr.Inst.GetPlayerPos());


        //해당 좌표를 uiCamera의 World좌표로 변경. 

        Vector3 pos_UI = UI_Camera.ViewportToWorldPoint(pos_Player);

        pos_UI.z = 0f;

        _Spot.transform.position = pos_UI;

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

코루틴 사용법  (0) 2018.05.14
Unity Google 연동  (0) 2017.11.13
Scene의 모든 오브젝트 가져오는 법  (0) 2017.09.18
간단한 AI FollowTarget Movement  (0) 2017.09.18
Unity 기본 Input Movement  (0) 2017.09.18

+ Recent posts