Update document

pull/31/head
hevinci 2022-07-27 11:05:12 +08:00
parent 1b25835d1a
commit 6851495da5
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@
public static void CollectSVC() public static void CollectSVC()
{ {
string savePath = ShaderVariantCollectorSettingData.Setting.SavePath; string savePath = ShaderVariantCollectorSettingData.Setting.SavePath;
ShaderVariantCollector.OnCompletedCallback = () => System.Action completedCallback = () =>
{ {
ShaderVariantCollection collection = ShaderVariantCollection collection =
AssetDatabase.LoadAssetAtPath<ShaderVariantCollection>(savePath); AssetDatabase.LoadAssetAtPath<ShaderVariantCollection>(savePath);
@ -27,7 +27,7 @@ public static void CollectSVC()
EditorTools.CloseUnityGameWindow(); EditorTools.CloseUnityGameWindow();
EditorApplication.Exit(0); EditorApplication.Exit(0);
}; };
ShaderVariantCollector.Run(savePath); ShaderVariantCollector.Run(savePath, completedCallback);
} }
``` ```

View File

@ -53,6 +53,7 @@
5. [资源部署](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleDeployer.md) 5. [资源部署](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleDeployer.md)
5. [构建报告](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleReporter.md) 5. [构建报告](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleReporter.md)
5. [调试器](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleDebugger.md) 5. [调试器](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleDebugger.md)
5. [着色器](https://github.com/tuyoogame/YooAsset/blob/master/Docs/ShaderVariantCollector.md)
5. [常见问题](https://github.com/tuyoogame/YooAsset/blob/master/Docs/FAQ.md) 5. [常见问题](https://github.com/tuyoogame/YooAsset/blob/master/Docs/FAQ.md)
## 代码教程 ## 代码教程