๋๋ Rect transfom์ ์์น์ PosY๋ผ๊ณ ๋์๋๊ฑธ 170์ผ๋ก ๋ฐ๊พธ๊ณ ์ถ์
๊ทธ๋์ ์ด๋ ๊ฒ ์
rectTransform.position = Vector3.Lerp(rectTransform.position, new Vector3(0, 170, 0), scrollSpeed);
๊ทธ๋ฌ๋๋
์์๋ UI๊ณ ์๋๋ ๊ทธ๋ฅ ์ค๋ธ์ ํธ์ธ๋ฐ ๋ณด์๋ค์ํผ UI๊ฐ ์๋ tranfom์ 170์์น๋ก ์์ง์
์ด๊ฑฐ ์ด์ฐํ๋์?
ํด๋น ๋๊ธ์ ์ญ์ ๋์์ต๋๋ค.
localPosition์ฐ๋ฉด ๋๋๊ฑฐ์๊ตฐ์... ๊ฐ์ฌํฉ๋๋ค!
rect์์ ํฌ์ง์ ๋ง๊ณ anchorPosition์ผ๋ก ํด์ผ๋จ
rectTransform. ๊น์ง๋ง์ณ๋ ๋ฐ๋ก ๋จ๋ค์ ๊ฐ์ฌํฉ๋๋ค