浏览代码

fix getScpoe bug

/main
guanghuispark 4 年前
当前提交
4a5bd404
共有 2 个文件被更改,包括 15 次插入18 次删除
  1. 14
      com.unity.uiwidgets/Runtime/painting/image_provider.cs
  2. 19
      com.unity.uiwidgets/Runtime/services/asset_bundle.cs

14
com.unity.uiwidgets/Runtime/painting/image_provider.cs


}
yield return www.SendWebRequest();
if (www.isNetworkError || www.isHttpError) {
completer.completeError(new Exception($"Failed to load from url \"{url}\": {www.error}"));
yield break;
}
var data = www.downloadHandler.data;
using (Isolate.getScope(isolate)) {
if (www.isNetworkError || www.isHttpError) {
completer.completeError(new Exception($"Failed to load from url \"{url}\": {www.error}"));
yield break;
}
using (Isolate.getScope(isolate)) {
var data = www.downloadHandler.data;
completer.complete(data);
}
}

19
com.unity.uiwidgets/Runtime/services/asset_bundle.cs


yield return www.SendWebRequest();
if (www.isNetworkError || www.isHttpError) {
completer.completeError(new UIWidgetsError(new List<DiagnosticsNode>() {
new ErrorSummary($"Unable to load asset: {key}"),
new StringProperty("HTTP status code", www.error)
}));
yield break;
}
using (Isolate.getScope(isolate)) {
if (www.isNetworkError || www.isHttpError) {
completer.completeError(new UIWidgetsError(new List<DiagnosticsNode>() {
new ErrorSummary($"Unable to load asset: {key}"),
new StringProperty("HTTP status code", www.error)
}));
yield break;
}
var data = www.downloadHandler.data;
using (Isolate.getScope(isolate)) {
var data = www.downloadHandler.data;
completer.complete(data);
}
}

正在加载...
取消
保存