mirror of https://github.com/tuyoogame/YooAsset
Update document
parent
7f41ba9a3c
commit
65468d5b15
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -0,0 +1,37 @@
|
|||
# 着色器变种收集
|
||||
|
||||
![image](https://github.com/tuyoogame/YooAsset/raw/main/Docs/Image/ShaderVariantCollector-img1.jpg)
|
||||
|
||||
点击搜集变种按钮开始收集,请耐心等待结束。
|
||||
|
||||
### Jenkins支持
|
||||
|
||||
```c#
|
||||
public static void CollectSVC()
|
||||
{
|
||||
string savePath = ShaderVariantCollectorSettingData.Setting.SavePath;
|
||||
ShaderVariantCollector.OnCompletedCallback = () =>
|
||||
{
|
||||
ShaderVariantCollection collection =
|
||||
AssetDatabase.LoadAssetAtPath<ShaderVariantCollection>(savePath);
|
||||
if (collection != null)
|
||||
{
|
||||
Debug.Log($"ShaderCount : {collection.shaderCount}");
|
||||
Debug.Log($"VariantCount : {collection.variantCount}");
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Failed to Collect shader Variants.");
|
||||
}
|
||||
|
||||
EditorTools.CloseUnityGameWindow();
|
||||
EditorApplication.Exit(0);
|
||||
};
|
||||
ShaderVariantCollector.Run(savePath);
|
||||
}
|
||||
```
|
||||
|
||||
```c#
|
||||
// 命令行调用
|
||||
%Projects_UnityEngine_Path% -batchmode -projectPath %Projects_UnityProject_Path% -executeMethod ET.CIHelper.CollectSVC -logFile %Projects_UnityProject_Path%/Logs/CIBuildSVC.log
|
||||
```
|
12
README.md
12
README.md
|
@ -47,12 +47,12 @@
|
|||
|
||||
## 入门教程
|
||||
1. [快速开始](https://github.com/tuyoogame/YooAsset/blob/master/Docs/QuickStart.md)
|
||||
2. [全局配置](https://github.com/tuyoogame/YooAsset/blob/master/Docs/Settings.md)
|
||||
3. [资源配置](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetCollector.md)
|
||||
4. [资源打包](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBuilder.md)
|
||||
5. [资源部署](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetDeploy.md)
|
||||
5. [构建报告](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetReporter.md)
|
||||
5. [调试器](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetDebugger.md)
|
||||
2. [全局配置](https://github.com/tuyoogame/YooAsset/blob/master/Docs/GlobalSettings.md)
|
||||
3. [资源配置](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleCollector.md)
|
||||
4. [资源打包](https://github.com/tuyoogame/YooAsset/blob/master/Docs/AssetBundleBuilder.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/AssetBundleDebugger.md)
|
||||
5. [常见问题](https://github.com/tuyoogame/YooAsset/blob/master/Docs/FAQ.md)
|
||||
|
||||
## 代码教程
|
||||
|
|
Loading…
Reference in New Issue