diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs index e5abc04..c63112e 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs @@ -12,6 +12,7 @@ public class GameScene1 : MonoBehaviour private readonly List _cachedAssetOperationHandles = new List(1000); private readonly List _cachedSubAssetsOperationHandles = new List(1000); + private readonly List _cachedRawFileOperationHandles = new List(1000); private int _npcIndex = 0; void Start() @@ -38,6 +39,12 @@ public class GameScene1 : MonoBehaviour handle.Release(); } _cachedSubAssetsOperationHandles.Clear(); + + foreach(var handle in _cachedRawFileOperationHandles) + { + handle.Release(); + } + _cachedRawFileOperationHandles.Clear(); } void OnGUI() { @@ -176,7 +183,8 @@ public class GameScene1 : MonoBehaviour var btn = CanvasRoot.transform.Find("load_rawfile/btn").GetComponent