diff --git a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs index 0cb2b499..747318b5 100644 --- a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs +++ b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceModule.cs @@ -517,6 +517,27 @@ namespace TEngine { return m_ResourceManager.LoadAssetAsyncHandle(assetName); } + + + /// + /// 同步加载子资源对象 + /// + /// 资源类型 + /// 资源的定位地址 + public SubAssetsOperationHandle LoadSubAssetsSync(string location) where TObject : UnityEngine.Object + { + return m_ResourceManager.LoadSubAssetsSync(location: location); + } + + /// + /// 异步加载子资源对象 + /// + /// 资源类型 + /// 资源的定位地址 + public SubAssetsOperationHandle LoadSubAssetsAsync(string location) where TObject : UnityEngine.Object + { + return m_ResourceManager.LoadSubAssetsAsync(location: location); + } /// /// 异步加载场景。