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