Skip to content

Commit

Permalink
Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
gmhevinci committed Jul 27, 2022
1 parent 1b25835 commit 6851495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Docs/ShaderVariantCollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public static void CollectSVC()
{
string savePath = ShaderVariantCollectorSettingData.Setting.SavePath;
ShaderVariantCollector.OnCompletedCallback = () =>
System.Action completedCallback = () =>
{
ShaderVariantCollection collection =
AssetDatabase.LoadAssetAtPath<ShaderVariantCollection>(savePath);
Expand All @@ -27,7 +27,7 @@ public static void CollectSVC()
EditorTools.CloseUnityGameWindow();
EditorApplication.Exit(0);
};
ShaderVariantCollector.Run(savePath);
ShaderVariantCollector.Run(savePath, completedCallback);
}
```

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## 代码教程
Expand Down

0 comments on commit 6851495

Please sign in to comment.