File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Editor/GenericTypesAnalyzer Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,15 @@ private static void UpdateGeneratedAssemblies()
108108
109109 private static void FlushConfigChangesToDisk ( )
110110 {
111+ // AssetDatabase.SaveAssetIfDirty was added in Unity 2020.3.16
112+ #if UNITY_2020_3_OR_NEWER && ! ( UNITY_2020_3_0 || UNITY_2020_3_1 || UNITY_2020_3_2 || UNITY_2020_3_3 || UNITY_2020_3_4 || UNITY_2020_3_5 || UNITY_2020_3_6 || UNITY_2020_3_7 || UNITY_2020_3_8 || UNITY_2020_3_9 || UNITY_2020_3_10 || UNITY_2020_3_11 || UNITY_2020_3_12 || UNITY_2020_3_13 || UNITY_2020_3_14 || UNITY_2020_3_15 )
111113 AssetDatabase . SaveAssetIfDirty ( GenerationDatabase < MonoBehaviour > . Instance ) ;
112114 AssetDatabase . SaveAssetIfDirty ( GenerationDatabase < GenericScriptableObject > . Instance ) ;
113115 AssetDatabase . SaveAssetIfDirty ( GenericTypesDatabase < MonoBehaviour > . Instance ) ;
114116 AssetDatabase . SaveAssetIfDirty ( GenericTypesDatabase < GenericScriptableObject > . Instance ) ;
117+ #else
118+ AssetDatabase . SaveAssets ( ) ;
119+ #endif
115120 }
116121 }
117122}
You can’t perform that action at this time.
0 commit comments