0

I have a class which check for internet availability, if there is not internet then it is suppose to load the file in UiWebView(I am using UniWebView).

    if(!isInternetAvailable())
    {
        _webView.insets = new UniWebViewEdgeInsets(0,0,0,0);
        _webView.url = Application.streamingAssetsPath + "/File.html";
        _webView.Load();
    }

i cannot figure out what is wrong. I have the file stored in StreamingAssets folder. please help out. Been stuck on this for hours.

generic2709
  • 31
  • 10

1 Answers1

-1

I'm afraid that the way you read files from StreamingAssets is incorrect, as the method to access StreamingAssets diverts in different OS.

Please check Unity Manual about it.

Mai Hai
  • 976
  • 8
  • 12