/// <summary> /// 保存宏定义符号 /// </summary> /// <param name="_symbols">宏定义符号</param> public void SaveMacroDefineScriptingDefineSymbols(Dictionary <int, EditorMacroDefineSymbol> _symbols) { List <string> saveDefines = new List <string>(); List <string> removeDefines = new List <string>(); foreach (EditorMacroDefineSymbol key in _symbols.Values) { foreach (EditorMacroDefineSymbol_Item d in key.defineMaping.Values) { if (d.isChecked) { if (!saveDefines.Contains(d.name)) { saveDefines.Add(d.name); } } else { if (!removeDefines.Contains(d.name)) { removeDefines.Add(d.name); } } } } EditorStrayFogApplication.RemoveScriptingDefineSymbol(removeDefines.ToArray()); EditorStrayFogApplication.AddScriptingDefineSymbol(saveDefines.ToArray()); }