์ฒด๋ ฅ๋ฐ๋ฅผ ์บ๋ฆญํฐ ๋จธ๋ฆฌ ์์ ๋์ฐ๋ ค๊ณ ํ๋๋ฐ
ย
ย
NGUI์์ ย
ย
Vector2 setpos = Camera.main.WorldToViewportPoint(playerNamePosition.position);
namelabel.transform.position = UICamera.currentCamera.ViewportToWorldPoint(setpos);
ย
ย
์ด๋ฐ์์ผ๋ก ๋ฉ์ธ์นด๋ฉ๋ผ ์๋ ์ขํ๋ฅผ ์ ํํด์ ์ฌ์ฉํ๊ฑฐ๋ ์
ย
ย
๊ทผ๋ฐ UGUI๋ย Ngui์ฒ๋ผ ๋ฐ๋กย ์นด๋ฉ๋ผ๊ฐ ์์ด์ ย UICamera๋ฅผ ์ฌ์ฉ๋ชปํ์ง ์๋์?
ย
ugui๋ ๋ฐ๋ก ์นด๋ฉ๋ผ๋ฅผ ์ถ๊ฐํด์ผํ๋๊ฑธ๊น์?
์บ๋ฒ์ค ์๋ ์คํ์ด์ค๋ก ์ฒด๋ ฅ๋ฐ ๋ฌ์์ค์ ์นด๋ฉ๋ผ์ ํ์ ๋ง์ถฐ์ฃผ๋ฉด ๋๋๊ฑฐ ์๋๊ฐ
UI์นด๋ฉ๋ผ๋ฅผ ์ฐ์ง๋ง๊ณ ๋ฒกํฐ ๊ทธ๋๋ก ์ด๋์์ผ๋ณด์ธ์ฉ - dc App