Skip to content

Commit

Permalink
[fix][runtime]:修复UnloadAsset接口的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CatImmortal committed Dec 5, 2023
1 parent 398f9ba commit b09f12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/CatAsset/Runtime/CatAssetManager.Unload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static partial class CatAssetManager
/// </summary>
public static void UnloadAsset(AssetHandler handler)
{
assetLoader.UnloadAsset(handler.AssetObj);
handler.Unload();
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Assets/CatAsset/Runtime/Handler/AssetHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public abstract class AssetHandler : BaseHandler , IBindableHandler
/// <inheritdoc />
protected override void InternalUnload()
{
CatAssetManager.UnloadAsset(this);
CatAssetManager.UnloadAsset(AssetObj);
Release();
}

Expand Down

0 comments on commit b09f12c

Please sign in to comment.