//public static bool IsSettingsAvailable() //{ // return File.Exists(LuaSettings.LUA_SETTINGS_PATH); //} public override void OnActivate(string searchContext, VisualElement rootElement) { m_LuaSettings = LuaSettings.GetSerializedSettings(); var rootsProperty = m_LuaSettings.FindProperty("srcRoots"); m_List = new ReorderableList(rootsProperty.serializedObject, rootsProperty, true, true, true, true); m_List.elementHeight = 21; m_List.drawElementCallback = DrawElement; m_List.drawHeaderCallback = DrawHeader; m_List.onAddDropdownCallback = OnAddElement; m_List.onRemoveCallback = OnRemoveElement; m_List.drawElementBackgroundCallback = DrawElementBackground; }