From 81b4fcfac19362b03dfcdc651bf9114028091097 Mon Sep 17 00:00:00 2001 From: c0nd3v <32241825+c0nd3v@users.noreply.github.com> Date: Fri, 11 Sep 2020 10:41:41 -0400 Subject: [PATCH] Fixed AwaitForAllAssets() --- .../UnityAsyncExtensions.AssetBundleRequestAllAssets.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AssetBundleRequestAllAssets.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AssetBundleRequestAllAssets.cs index 3a19a47..9ff4ffa 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AssetBundleRequestAllAssets.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AssetBundleRequestAllAssets.cs @@ -46,6 +46,11 @@ namespace Cysharp.Threading.Tasks this.continuationAction = null; } + public AssetBundleRequestAllAssetsAwaiter GetAwaiter() + { + return this; + } + public bool IsCompleted => asyncOperation.isDone; public UnityEngine.Object[] GetResult()