Skip to content

Commit

Permalink
[v0.2.9] Resource Asset unloading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g0dzZz-coder committed Jul 31, 2024
1 parent 09bfa9a commit f39758d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Files.Resource/ResourcesAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public TAsset Load()

public void Unload()
{
if (IsLoaded == false)
if (IsLoaded == false || typeof(TAsset).IsSubclassOf(typeof(MonoBehaviour)))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.depra.assets.unity",
"version": "0.2.8",
"version": "0.2.9",
"displayName": "Depra.Assets",
"description": "Provides an API for loading Unity asset files in multiple ways through a single interface.",
"unity": "2021.3",
Expand Down

0 comments on commit f39758d

Please sign in to comment.