static InfluenceVolumeUI() { SectionFoldoutShapePlanar = CED.Group( CED.FoldoutGroup( influenceVolumeHeader, (s, d, o) => s.isSectionExpandedShape, FoldoutOption.Indent, CED.Action(Drawer_InfluenceAdvancedSwitch), CED.space, CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((InfluenceShape)i), FadeOption.None, SectionShapeBoxPlanar, SectionShapeSpherePlanar ) ) ); SectionFoldoutShape = CED.Group( CED.FoldoutGroup( influenceVolumeHeader, (s, d, o) => s.isSectionExpandedShape, FoldoutOption.Indent, CED.Action(Drawer_InfluenceAdvancedSwitch), CED.space, CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((InfluenceShape)i), FadeOption.None, SectionShapeBox, SectionShapeSphere ) ) ); }
internal static CED.IDrawer InnerInspector(ReflectionProbeType type) { switch (type) { case ReflectionProbeType.PlanarReflection: return(CED.Group( CED.Action(Drawer_InfluenceAdvancedSwitch), CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((InfluenceShape)i), FadeOption.None, SectionShapeBoxPlanar, SectionShapeSpherePlanar ) )); case ReflectionProbeType.ReflectionProbe: return(CED.Group( CED.Action(Drawer_InfluenceAdvancedSwitch), CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((InfluenceShape)i), FadeOption.None, SectionShapeBox, SectionShapeSphere ) )); default: throw new System.ArgumentException("Unknown probe type"); } }
static InfluenceVolumeUI() { SectionShape = CED.Group( CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((ShapeType)i), FadeOption.Indent, SectionShapeBox, SectionShapeSphere ) ); SectionFoldoutShape = CED.Group( CED.FoldoutGroup( "Influence Volume", (s, d, o) => s.isSectionExpandedShape, FoldoutOption.Indent, CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((ShapeType)i), FadeOption.None, SectionShapeBox, SectionShapeSphere ) ) ); }
static PlanarReflectionProbeUI() { SectionFoldoutCaptureSettings = CED.FoldoutGroup( "Capture Settings", (s, d, o) => s.isSectionExpandedCaptureSettings, FoldoutOption.Indent, CED.Action(Drawer_SectionCaptureSettings), CED.FadeGroup( (s, d, o, i) => { switch (i) { default: case 0: return(s.isSectionExpandedCaptureMirrorSettings); case 1: return(s.isSectionExpandedCaptureStaticSettings); } }, FadeOption.None, SectionCaptureMirrorSettings, SectionCaptureStaticSettings) ); SectionProbeModeSettings = CED.Group( CED.Action(Drawer_FieldCaptureType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpandedReflectionProbeMode((ReflectionProbeMode)i), FadeOption.Indent, SectionProbeModeBakedSettings, SectionProbeModeRealtimeSettings, SectionProbeModeCustomSettings ) ); Inspector = CED.Group( //SectionProbeModeSettings, CED.space, CED.Action((s, d, o) => EditorGUILayout.LabelField(_.GetContent("Proxy Volume"), EditorStyles.boldLabel)), CED.Action(Drawer_FieldProxyVolumeReference), CED.space, CED.Action(Drawer_Toolbar), CED.space, CED.Select( (s, d, o) => s.influenceVolume, (s, d, o) => d.influenceVolume, InfluenceVolumeUI.SectionFoldoutShape ), CED.Action(Drawer_DifferentShapeError), SectionFoldoutInfluenceSettings, SectionFoldoutCaptureSettings, CED.Select( (s, d, o) => s.frameSettings, (s, d, o) => d.frameSettings, FrameSettingsUI.Inspector ), CED.space, CED.Action(Drawer_SectionBakeButton) ); }
public static CED.IDrawer SectionLightingSettings(bool withOverride) { return(CED.FoldoutGroup( lightSettingsHeaderContent, (s, p, o) => s.isSectionExpandedLightingSettings, FoldoutOption.Indent | FoldoutOption.Boxed, CED.LabelWidth(250, CED.Action((s, p, o) => Drawer_SectionLightingSettings(s, p, o, withOverride))), CED.space)); }
public static CED.IDrawer SectionRenderingPasses(bool withOverride) { return(CED.FoldoutGroup( renderingPassesHeaderContent, (s, p, o) => s.isSectionExpandedRenderingPasses, FoldoutOption.Indent | FoldoutOption.Boxed, CED.LabelWidth(200, CED.Action((s, p, o) => Drawer_SectionRenderingPasses(s, p, o, withOverride))), CED.space )); }
#pragma warning disable 618 //CED public static CED.IDrawer SectionAsyncComputeSettings(bool withOverride) #pragma warning restore 618 { return(CED.FoldoutGroup( asyncComputeSettingsHeaderContent, (s, p, o) => s.isSectionExpandedAsyncComputeSettings, FoldoutOption.Indent | FoldoutOption.Boxed, CED.LabelWidth(250, CED.Action((s, p, o) => Drawer_SectionAsyncComputeSettings(s, p, o, withOverride))), CED.space )); }
internal static CED.IDrawer Inspector(bool withOverride = true) { return(CED.Group( CED.Action((s, d, o) => { EditorGUILayout.BeginVertical("box"); EditorGUILayout.LabelField(FrameSettingsUI.frameSettingsHeaderContent, EditorStyles.boldLabel); }), InspectorInnerbox(withOverride), CED.Action((s, d, o) => EditorGUILayout.EndVertical()) )); }
static ProxyVolumeUI() { SectionShape = CED.Group( CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((InfluenceShape)i), FadeOption.Indent, SectionShapeBox, SectionShapeSphere ) ); }
static HDProbeUI() { SectionProbeModeSettings = CED.Group( CED.Action(Drawer_FieldCaptureType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpandedReflectionProbeMode((ReflectionProbeMode)i), FadeOption.Indent, SectionProbeModeBakedSettings, SectionProbeModeRealtimeSettings ) ); }
public static CED.IDrawer SectionXRSettings(bool withOverride) { return(CED.FadeGroup( (s, d, o, i) => s.isSectionExpandedXRSupported, FadeOption.None, CED.FoldoutGroup( xrSettingsHeaderContent, (s, p, o) => s.isSectionExpandedXRSettings, FoldoutOption.Indent | FoldoutOption.Boxed, CED.LabelWidth(200, CED.Action((s, p, o) => Drawer_FieldStereoEnabled(s, p, o, withOverride))), CED.space))); }
static ProxyVolumeUI() { SectionShape = CED.Group( CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((ShapeType)i), true, SectionShapeBox, SectionShapeSphere ) ); }
#pragma warning restore 618 static ProxyVolumeUI() { SectionShape = CED.Group( CED.Action(Drawer_FieldShapeType), CED.FadeGroup( (s, d, o, i) => s.IsSectionExpanded_Shape((InfluenceShape)i), #pragma warning disable 618 FadeOption.Indent, #pragma warning restore 618 SectionShapeBox, SectionShapeSphere ) ); }
static HDReflectionProbeUI() { Inspector = new[] { SectionPrimarySettings, ProxyVolumeSettings, CED.Select( (s, d, o) => s.influenceVolume, (s, d, o) => d.influenceVolume, InfluenceVolumeUI.SectionFoldoutShape ), CED.Action((s, d, o) => Drawer_DifferentShapeError(s, d, o)), SectionCaptureSettings, SectionFoldoutAdditionalSettings, CED.Action((s, d, o) => Drawer_SectionBakeButton(s, d, o)) }; }
static HDRenderPipelineUI() { Inspector = CED.Group( SectionPrimarySettings, CED.space, CED.Select( (s, d, o) => s.renderPipelineSettings, (s, d, o) => d.renderPipelineSettings, RenderPipelineSettingsUI.Inspector ), CED.space, CED.Action(Drawer_TitleDefaultFrameSettings), CED.Select( (s, d, o) => s.defaultFrameSettings, (s, d, o) => d.defaultFrameSettings, FrameSettingsUI.Inspector ) ); }