-
Notifications
You must be signed in to change notification settings - Fork 869
Expand file tree
/
Copy pathHDCameraUI.Drawers.cs
More file actions
51 lines (46 loc) · 1.67 KB
/
HDCameraUI.Drawers.cs
File metadata and controls
51 lines (46 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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,
};
}
}