Merge pull request #22 from wqaetly/ForPr

fix:修复ShaderVariantCollection刷新不及时问题
pull/24/head
何冠峰 2022-07-12 14:54:26 +08:00 committed by GitHub
commit 4f7bb945e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ namespace YooAsset.Editor
EditorGUILayout.Space();
if (GUILayout.Button("搜集变种", GUILayout.MaxWidth(80)))
{
// 先删除再保存否则ShaderVariantCollection内容将无法及时刷新
AssetDatabase.DeleteAsset(ShaderVariantCollectorSettingData.Setting.SavePath);
ShaderVariantCollector.Run(ShaderVariantCollectorSettingData.Setting.SavePath);
}