Example #1
0
 protected override void ValueGUIImpl()
 {
     if (isFlags)
     {
         TypedDrawingValue = EditorGUIEx.EnumFlagsField(TypedDrawingValue);
     }
     else
     {
         typedDrawnValue = EditorGUIEx.EnumPopup(TypedDrawingValue);
     }
 }
Example #2
0
        private void UpdateSettingsGUI()
        {
            var updateMode = Settings.DrawerUpdateMode;

            updateMode = EditorGUIEx.EnumPopup(dataUpdateModeContent, updateMode);
            switch (updateMode)
            {
            case DrawerUpdateMode.TimeInterval:
                Settings.DrawerUpdateTimeInterval = EditorGUILayout
                                                    .FloatField(timeIntervalContent, Settings.DrawerUpdateTimeInterval);
                break;
            }
            Settings.DrawerUpdateMode = updateMode;
        }