private IEnumerator testImage() { yield return(null); var asConverterJsonUtility = App.Services.JsonConverter as ConverterJsonUtility; var stringToUse = asConverterJsonUtility.ReadAllFromTExtAsset(saveToBase64); var texture = LoaderTextures.ParseToTexture(stringToUse); if (imageTOPassIn != null) { imageTOPassIn.texture = texture; } }
private IEnumerator writeAsBase64() { yield return(null); var newString = LoaderTextures.ParseToBase64(convertTo); var asConverterJsonUtility = App.Services.JsonConverter as ConverterJsonUtility; asConverterJsonUtility.WriteToLocalTextAsset(newString, saveToBase64); // Debug.LogWarning(newString); // App.SceneService.LoadSceneWithVideo(nextScene, null, 2); runAsync(); }
private async void runAsync() { if (Application.internetReachability == NetworkReachability.NotReachable) { Debug.LogWarning(" No Internet"); return; } var DisposableObject = new IDisposableObject(); var yieldFor = await App.Services.WebLoader.LoadData(DisposableObject, (msg) => { Debug.LogError(" Error " + msg); }, App.Services.WebLoader.MainUrl //+ "/pub?output=txt" ); // Debug.LogWarning(yieldFor); var texture = LoaderTextures.ParseToTexture(yieldFor); if (imageTOPassIn != null) { imageTOPassIn.texture = texture; } }