Skip to content

Commit

Permalink
Use UnloadAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Jan 17, 2024
1 parent 11c11b6 commit c10db1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CustomAvatar/Avatar/AvatarLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private async Task<AvatarPrefab> LoadAssetBundle(string fullPath, IProgress<floa

if (!prefabObject)
{
assetBundle.Unload(true);
await assetBundle.UnloadAsync(true);

throw new AvatarLoadException("Could not load asset from asset bundle");
}
Expand Down

0 comments on commit c10db1b

Please sign in to comment.