Beispiel #1
0
 /// <summary>
 /// Sets whether file access from file URLs is allowed.
 ///
 /// By setting with `true`, access to file URLs inside the web view will be enabled and you could access sub-resources or
 /// make cross origin requests from local HTML files. This method only works on iOS. The file accessing from file URLs on
 /// Android is available by default.
 /// </summary>
 /// <param name="flag">Whether the file access from file URLs is allowed or not.</param>
 public void SetAllowFileAccessFromFileURLs(bool flag)
 {
     #if (UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_IOS) && !UNITY_EDITOR_WIN
     UniWebViewInterface.SetAllowFileAccessFromFileURLs(listener.name, flag);
     #endif
 }