Example #1
0
    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;
        }
    }
Example #2
0
    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;
        }
    }