ํ๋ ์ด์ด ์ ์ค๋ธ์ ํธ์ ์ฅ์ด์ค ๋ฌด๊ธฐ ์ค๋ธ์ ํธ๋ฅผ,
ํ๋ ์ด์ด์ ๋ค๋ฅธ ๋ถ์ ์ค๋ธ์ ํธ๋ก ์ด๋๊ฐ๋ฅํจ?
transform.GetChild ๊ฐ์๊ฒ ๊ทธ๋๋ง ๋น์ทํ ๊ฒ ๊ฐ์๋ฐ
์ด๊ฒ๋ ์๋ ๊ฒ ๊ฐ๊ณ ...
์์๊น?
ํ๋ ์ด์ด ์ ์ค๋ธ์ ํธ์ ์ฅ์ด์ค ๋ฌด๊ธฐ ์ค๋ธ์ ํธ๋ฅผ,
ํ๋ ์ด์ด์ ๋ค๋ฅธ ๋ถ์ ์ค๋ธ์ ํธ๋ก ์ด๋๊ฐ๋ฅํจ?
transform.GetChild ๊ฐ์๊ฒ ๊ทธ๋๋ง ๋น์ทํ ๊ฒ ๊ฐ์๋ฐ
์ด๊ฒ๋ ์๋ ๊ฒ ๊ฐ๊ณ ...
์์๊น?
https://docs.unity3d.com/ScriptReference/Transform.SetParent.html
์ด๊ฑธ ๋งํ๋๊ฑฐ์??
ํ ๋ถ๋ชจ ์์์ ์ค๋ธ์ ํธ๋ฅผ ์ด๋์ํค๋ ๊ฑด๋ฐ, ์ด๊ฑด ๋ถ๋ชจ๋ฅผ ๋ฐ๊พธ๋ ๊ฒ ๊ฐ๋ค;; ์ํผ ์ด๋ฐ๊ฒ๋ ์๋ค๋ ๊ฑธ ์๊ฒ ๋๋ค ใณใณ