diff --git a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs index 562fcff1..e561b9f8 100644 --- a/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs +++ b/Assets/TEngine/Runtime/GameFramework/Resource/ResourceManager.cs @@ -474,6 +474,26 @@ namespace TEngine return YooAssets.LoadAssetAsync(assetName); } + /// + /// 同步加载子资源对象 + /// + /// 资源类型 + /// 资源的定位地址 + public SubAssetsOperationHandle LoadSubAssetsSync(string location) where TObject : Object + { + return YooAssets.LoadSubAssetsSync(location: location); + } + + /// + /// 异步加载子资源对象 + /// + /// 资源类型 + /// 资源的定位地址 + public SubAssetsOperationHandle LoadSubAssetsAsync(string location) where TObject : Object + { + return YooAssets.LoadSubAssetsAsync(location: location); + } + /// /// 异步加载场景。 ///