You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
1.7 KiB

using UnityEngine;
using UnityEngine.Rendering.HighDefinition;
namespace UnityEditor.Rendering.HighDefinition
{
using CED = CoreEditorDrawer<SerializedHDCamera>;
static partial class HDCameraUI
{
/// <summary>Enum to store know the expanded state of a expandable section on the camera inspector</summary>
[HDRPHelpURL("HDRP-Camera")]
public enum Expandable
{
/// <summary> Projection</summary>
Projection = 1 << 0,
/// <summary> Physical</summary>
Physical = 1 << 1,
/// <summary> Output</summary>
Output = 1 << 2,
/// <summary> Orthographic</summary>
Orthographic = 1 << 3,
/// <summary> RenderLoop</summary>
RenderLoop = 1 << 4,
/// <summary> Rendering</summary>
Rendering = 1 << 5,
/// <summary> Environment</summary>
Environment = 1 << 6,
}
static readonly ExpandedState<Expandable, Camera> k_ExpandedState = new ExpandedState<Expandable, Camera>(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,
};
}
}