ET icon indicating copy to clipboard operation
ET copied to clipboard

6.0 EntityFactory.Create<UnityWebRequestAsync> 未执行updateSystem 导致无限等待

Open MagicOrangeKKSK opened this issue 5 years ago • 1 comments
trafficstars

EntityFactory.Create未将Entity进行Register,然后没有执行UpdateSystem 就一直await 估计是没有设置Parent 改成CreateWithParent就解决了

using (UnityWebRequestAsync webRequestAsync = EntityFactory.CreateWithParent<UnityWebRequestAsync>(this))
                {

                    versionUrl = url + PathHelper.HotfixPath + "Version.txt";
                    //Log.Debug(versionUrl);

                    await webRequestAsync.DownloadAsync(versionUrl);
                    remoteVersionConfig = JsonHelper.FromJson<VersionConfig>(webRequestAsync.Request.downloadHandler.text);
                    //Log.Debug(JsonHelper.ToJson(this.VersionConfig));
                }

MagicOrangeKKSK avatar Sep 03 '20 15:09 MagicOrangeKKSK

哪个版本?

egametang avatar Sep 14 '20 14:09 egametang