Example #1
0
 public override void OnActivate(string searchContext, VisualElement rootElement)
 {
     if (gameSettings == null)
     {
         gameSettings = LootLockerConfig.Get();
     }
     // This function is called when the user clicks on the MyCustom element in the Settings window.
     m_CustomSettings = GetSerializedSettings();
 }
Example #2
0
        public override void OnGUI(string searchContext)
        {
            m_CustomSettings.Update();

            if (gameSettings == null)
            {
                gameSettings = LootLockerConfig.Get();
            }
            using (new GUILayout.HorizontalScope())
            {
                GUILayout.Space(6f);

                using (new GUILayout.VerticalScope())
                {
                    DrawGameSettings();
                }
            }
            m_CustomSettings.ApplyModifiedProperties();
        }