We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e871f9 + d3b20c2 commit 9eee4bbCopy full SHA for 9eee4bb
Runtime/Assets/Resolvers/AddressableAssetResolver.cs
@@ -44,7 +44,12 @@ private async ValueTask<T> LoadAsync()
44
T instance = default;
45
await TaskQueue.EnqueueAsync(async ct =>
46
{
47
- if (Instance is not null) return;
+ if (Instance is not null)
48
+ {
49
+ // Already loaded
50
+ instance = Instance;
51
+ return;
52
+ }
53
instance = await AssetLoader.LoadAsync<T>(RuntimeKey, ct);
54
}).OnException(Debug.LogException);
55
return instance;
0 commit comments