mirror of https://github.com/tuyoogame/YooAsset
Update document
parent
1b25835d1a
commit
6851495da5
|
@ -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);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
## 代码教程
|
## 代码教程
|
||||||
|
|
Loading…
Reference in New Issue