/// <summary> /// 指定したラウイメージに画像をダウンロードする。 /// ログ画面が非表示でもダウンロード可能 /// </summary> /// <param name="ImgThumbnail"></param> /// <param name="empty"></param> /// <param name="thumbnailUrl"></param> public static void GoWWW(RawImage ImgThumbnail, Texture empty, string thumbnailUrl) { GameObject obj = new GameObject(); // コルーチン実行用オブジェクト作成 obj.name = "GlobalCoroutine"; GlobalCoroutine component = obj.AddComponent <GlobalCoroutine>(); if (component != null) { component.StartCoroutine(component.UpdateThumbnail(ImgThumbnail, empty, thumbnailUrl)); } }
public static void Go(IEnumerator coroutine) { GameObject obj = new GameObject(); // コルーチン実行用オブジェクト作成 obj.name = "GlobalCoroutine"; GlobalCoroutine component = obj.AddComponent <GlobalCoroutine>(); if (component != null) { component.StartCoroutine(component.Do(coroutine)); } }