internal static DebugUI.Widget CreateLightingFeatures(DebugDisplaySettingsLighting data) => new DebugUI.BitField
 {
     displayName = "Lighting Features",
     getter      = () => data.DebugLightingFeatureFlagsMask,
     setter      = (value) => data.DebugLightingFeatureFlagsMask = (DebugLightingFeatureFlags)value,
     enumType    = typeof(DebugLightingFeatureFlags),
 };
 internal static DebugUI.Widget CreateLightingDebugMode(DebugDisplaySettingsLighting data) => new DebugUI.EnumField
 {
     displayName = "Lighting Debug Mode",
     autoEnum    = typeof(DebugLightingMode),
     getter      = () => (int)data.DebugLightingMode,
     setter      = (value) => {},
     getIndex    = () => (int)data.DebugLightingMode,
     setIndex    = (value) => data.DebugLightingMode = (DebugLightingMode)value
 };
 public SettingsPanel(DebugDisplaySettingsLighting data)
 {
     AddWidget(new DebugUI.Foldout
     {
         displayName = "Lighting Debug Modes",
         isHeader    = true,
         opened      = true,
         children    =
         {
             WidgetFactory.CreateLightingDebugMode(data),
             WidgetFactory.CreateLightingFeatures(data)
         }
     });
 }