private void DrawExtensionDefines() { using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox)) { for (int i = 0; i < extensionsDefines.Count; ++i) { ExtensionDefineEntry currExtensionDefine = extensionsDefines[i]; bool newEnalbed = EditorGUILayout.Toggle($"{currExtensionDefine.Name} extensions", currExtensionDefine.Enabled); if (newEnalbed != currExtensionDefine.Enabled) { currExtensionDefine.Enabled = newEnalbed; if (currExtensionDefine.Enabled) { AddScriptingDefineSymbols(currExtensionDefine.Define); } else { RemoveScriptingDefineSymbols(currExtensionDefine.Define); } } } } }
private void GetExtensionsDefinesValues() { for (int i = 0; i < extensionsDefines.Count; ++i) { ExtensionDefineEntry currExtensionDefine = extensionsDefines[i]; currExtensionDefine.Enabled = ContainsScriptingDefineSymbol(currExtensionDefine.Define); } }