修改了一些bug,并补充了一些函数

This commit is contained in:
2025-09-21 17:33:31 +08:00
parent f8aea1c383
commit ce56cca782
8 changed files with 114 additions and 19 deletions

View File

@@ -283,6 +283,18 @@ namespace Convention
callback(result.assetBundle);
yield return null;
}
public IEnumerator LoadAsAssetBundle([In]Action<float> progress, [In] Action<AssetBundle> callback)
{
AssetBundleCreateRequest result = AssetBundle.LoadFromFileAsync(FullPath);
while (result.isDone == false)
{
progress(result.progress);
yield return null;
}
yield return result;
callback(result.assetBundle);
yield return null;
}
public string LoadAsUnknown(string suffix)
{