void OnGUI()
        {
            _scrollViewPosition = EditorGUILayout.BeginScrollView(_scrollViewPosition);
            {
                var offsetY = EntitasEditorLayout.DrawHeaderTexture(this, _headerTexture);
                EditorGUILayout.Space();
                EditorGUILayout.LabelField("Version: " + _localVersion);
                GUILayout.Space(offsetY - 24);

                foreach (var drawer in _preferencesDrawers)
                {
                    drawer.Draw(_config);
                    EditorGUILayout.Space();
                }
            }
            EditorGUILayout.EndScrollView();

            if (GUI.changed)
            {
                EntitasPreferences.SaveConfig(_config);
            }
        }
 public static void OpenPreferences()
 {
     EntitasEditorLayout.ShowWindow <EntitasPreferencesWindow>("Entitas Preferences");
 }
 public static void OpenPreferences()
 {
     EntitasEditorLayout.ShowWindow <EntitasPreferencesWindow>("Entitas " + EntitasCheckForUpdates.GetLocalVersion());
 }
 void drawHeader()
 {
     EntitasEditorLayout.DrawTexture(_headerTexture);
 }