using UnityEngine; using UnityEngine.Rendering.HighDefinition; namespace UnityEditor.Rendering.HighDefinition { using CED = CoreEditorDrawer; static partial class HDCameraUI { /// Enum to store know the expanded state of a expandable section on the camera inspector [HDRPHelpURL("HDRP-Camera")] public enum Expandable { /// Projection Projection = 1 << 0, /// Physical Physical = 1 << 1, /// Output Output = 1 << 2, /// Orthographic Orthographic = 1 << 3, /// RenderLoop RenderLoop = 1 << 4, /// Rendering Rendering = 1 << 5, /// Environment Environment = 1 << 6, } static readonly ExpandedState k_ExpandedState = new ExpandedState(Expandable.Projection, "HDRP"); public static readonly CED.IDrawer SectionProjectionSettings = CED.FoldoutGroup( CameraUI.Styles.projectionSettingsHeaderContent, Expandable.Projection, k_ExpandedState, FoldoutOption.Indent, CED.Group( CameraUI.Drawer_Projection ), PhysicalCamera.Drawer ); public static readonly CED.IDrawer[] Inspector = new[] { SectionProjectionSettings, Rendering.Drawer, Environment.Drawer, Output.Drawer, }; } }