Closed junhyungPARK78 closed 1 year ago
참고 url
Vector2 pos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
월드 포지션 취득할 때 x좌표만 필요한 경우에는 아래와 같이 해 주면 된다.
float xPos = Camera.main.ScreenToWorldPoint(cameraPosition).x;
참고 url
Vector2 pos = Camera.main.ScreenToWorldPoint(Input.mousePosition);