Unity Resources 폴더에 들어있는 리소스 활용하기

먼저 Resources 폴더를 만들어 주어야 한다

Resources.Load<Sprite>("UI/SpecialCharacters" + "Shift_small");

다음으로 위와 같이 코드를 작성하면 

Resources => UI => Shift_small 녀석을 가져올 수 있다

 

Resources.Load<Sprite>에서 Original 모습은

Resources.Load<T> 이다

 

응용

transform.GetChild(i).GetComponentInChildren<Image>().sprite = Resources.Load<Sprite>("UI/SmallLetter/" + transform.GetChild(i).name);