mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
ResourceModule UpdateMainfest Info and Save operation.SavePackageVersion();
ResourceModule UpdateMainfest Info and Save operation.SavePackageVersion();
This commit is contained in:
@@ -202,6 +202,21 @@ namespace TEngine
|
||||
return m_ResourceManager.InitPackage();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前资源包版本。
|
||||
/// </summary>
|
||||
/// <returns>资源包版本。</returns>
|
||||
public string GetPackageVersion()
|
||||
{
|
||||
var package = YooAssets.GetPackage(packageName);
|
||||
if (package == null)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
return package.GetPackageVersion();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 异步更新最新包的版本。
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user