//Canvasの子供にImageコンポネントが付いたUIがあるとする GameObject.Find ("image").GetComponent<Image> ().sprite = Resources.Load("Images/Cards/0001", typeof(Sprite)) as Sprite; // typeof(Sprite)が必要 // 一方、as Textureのときはtypeof(Sprite)は不要
//Canvasの子供にImageコンポネントが付いたUIがあるとする GameObject.Find ("image").GetComponent<Image> ().sprite = Resources.Load("Images/Cards/0001", typeof(Sprite)) as Sprite; // typeof(Sprite)が必要 // 一方、as Textureのときはtypeof(Sprite)は不要