From 6851495da57377587e89842c15bd840c25614025 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 27 Jul 2022 11:05:12 +0800 Subject: [PATCH] Update document --- Docs/ShaderVariantCollector.md | 4 ++-- README.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Docs/ShaderVariantCollector.md b/Docs/ShaderVariantCollector.md index 83ac5ce..39abda9 100644 --- a/Docs/ShaderVariantCollector.md +++ b/Docs/ShaderVariantCollector.md @@ -10,7 +10,7 @@ public static void CollectSVC() { string savePath = ShaderVariantCollectorSettingData.Setting.SavePath; - ShaderVariantCollector.OnCompletedCallback = () => + System.Action completedCallback = () => { ShaderVariantCollection collection = AssetDatabase.LoadAssetAtPath(savePath); @@ -27,7 +27,7 @@ public static void CollectSVC() EditorTools.CloseUnityGameWindow(); EditorApplication.Exit(0); }; - ShaderVariantCollector.Run(savePath); + ShaderVariantCollector.Run(savePath, completedCallback); } ``` diff --git a/README.md b/README.md index 5109279..bc030b7 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ 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/AssetBundleDebugger.md) +5. [着色器](https://github.com/tuyoogame/YooAsset/blob/master/Docs/ShaderVariantCollector.md) 5. [常见问题](https://github.com/tuyoogame/YooAsset/blob/master/Docs/FAQ.md) ## 代码教程