From 240da47fc36466f83335fe8a9adfacdf320f8089 Mon Sep 17 00:00:00 2001 From: Alex-Rachel <574809918@qq.com> Date: Sat, 10 May 2025 19:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4LoadSubAssetsSync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Module/ResourceModule/IResourceModule.cs | 16 --------------- .../Module/ResourceModule/ResourceModule.cs | 20 ------------------- 2 files changed, 36 deletions(-) diff --git a/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/IResourceModule.cs b/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/IResourceModule.cs index 13139a41..95981094 100644 --- a/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/IResourceModule.cs +++ b/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/IResourceModule.cs @@ -207,22 +207,6 @@ namespace TEngine /// 要加载资源的类型。 UniTaskVoid LoadAsset(string location, Action callback, string packageName = "") where T : UnityEngine.Object; - /// - /// 同步加载子资源对象。 - /// - /// 资源类型。 - /// 资源的定位地址。 - /// 指定资源包的名称。不传使用默认资源包 - public TObject[] LoadSubAssetsSync(string location, string packageName = "") where TObject : UnityEngine.Object; - - /// - /// 异步加载子资源对象。 - /// - /// 资源类型。 - /// 资源的定位地址。 - /// 指定资源包的名称。不传使用默认资源包 - public UniTask LoadSubAssetsAsync(string location, string packageName = "") where TObject : UnityEngine.Object; - /// /// 异步加载资源。 /// diff --git a/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/ResourceModule.cs b/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/ResourceModule.cs index ace577a4..dde48149 100644 --- a/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/ResourceModule.cs +++ b/UnityProject/Assets/TEngine/Runtime/Module/ResourceModule/ResourceModule.cs @@ -756,26 +756,6 @@ namespace TEngine }; } - public TObject[] LoadSubAssetsSync(string location, string packageName = "") where TObject : UnityEngine.Object - { - if (string.IsNullOrEmpty(location)) - { - throw new GameFrameworkException("Asset name is invalid."); - } - - throw new NotImplementedException(); - } - - public UniTask LoadSubAssetsAsync(string location, string packageName = "") where TObject : UnityEngine.Object - { - if (string.IsNullOrEmpty(location)) - { - throw new GameFrameworkException("Asset name is invalid."); - } - - throw new NotImplementedException(); - } - public async UniTask LoadAssetAsync(string location, CancellationToken cancellationToken = default, string packageName = "") where T : UnityEngine.Object { if (string.IsNullOrEmpty(location))