diff --git a/Assets/TEngine/Runtime/GameFramework/Resource/IResourceManager.cs b/Assets/TEngine/Runtime/GameFramework/Resource/IResourceManager.cs
index 046ed783..05684c22 100644
--- a/Assets/TEngine/Runtime/GameFramework/Resource/IResourceManager.cs
+++ b/Assets/TEngine/Runtime/GameFramework/Resource/IResourceManager.cs
@@ -234,6 +234,12 @@ namespace TEngine
/// 资源的定位地址
public SubAssetsOperationHandle LoadSubAssetsAsync(string location) where TObject : UnityEngine.Object;
+ ///
+ /// 同步加载子资源对象
+ ///
+ /// 资源信息。
+ public SubAssetsOperationHandle LoadSubAssetsSync(AssetInfo assetInfo);
+
///
/// 异步加载场景。
///
diff --git a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs
index e561b9f8..260a6a64 100644
--- a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs
+++ b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs
@@ -493,6 +493,15 @@ namespace TEngine
{
return YooAssets.LoadSubAssetsAsync(location: location);
}
+
+ ///
+ /// 同步加载子资源对象
+ ///
+ /// 资源信息。
+ public SubAssetsOperationHandle LoadSubAssetsSync(AssetInfo assetInfo)
+ {
+ return YooAssets.LoadSubAssetsSync(assetInfo);
+ }
///
/// 异步加载场景。
diff --git a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs
index 747318b5..c89bb5c9 100644
--- a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs
+++ b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs
@@ -538,6 +538,21 @@ namespace TEngine
{
return m_ResourceManager.LoadSubAssetsAsync(location: location);
}
+
+ ///
+ /// 同步加载子资源对象
+ ///
+ /// 资源的定位地址
+ public SubAssetsOperationHandle LoadSubAssetsSync(string location)
+ {
+ var assetInfo = GetAssetInfo(location);
+ if (assetInfo == null)
+ {
+ Log.Fatal($"AssetsInfo is null");
+ return null;
+ }
+ return m_ResourceManager.LoadSubAssetsSync(assetInfo);
+ }
///
/// 异步加载场景。