카테고리 : C# Neo Land | 2018. 7. 29. 00:20
* 방법 1img.mainTexture = Resources.Load("img/imageName", typeof(Texture2D)) as Texture2D; * 방법 2 private iEnumerator loadImg(){ Texture2D texture = null; string PATH = "Texture/image.jpg"; texture = Resources.Load(PATH,typeof(Texture2D)) as Texture2D; img.mainTexture = texture;}