Firstborn/Library/PackageCache/com.unity.render-pipelines..../Editor/Camera/UniversalRenderPipelineCame...

33 lines
1.3 KiB
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
namespace UnityEditor.Rendering.Universal
{
using CED = CoreEditorDrawer<UniversalRenderPipelineSerializedCamera>;
static partial class UniversalRenderPipelineCameraUI
{
public partial class PhysicalCamera
{
public static readonly CED.IDrawer Drawer = CED.Conditional(
(serialized, owner) => serialized.projectionMatrixMode.intValue == (int)CameraUI.ProjectionMatrixMode.PhysicalPropertiesBased,
CED.Group(
CameraUI.PhysicalCamera.Styles.cameraBody,
GroupOption.Indent,
CED.Group(
GroupOption.Indent,
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_CameraBody_Sensor,
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_CameraBody_GateFit
)
),
CED.Group(
CameraUI.PhysicalCamera.Styles.lens,
GroupOption.Indent,
CED.Group(
GroupOption.Indent,
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_Lens_FocalLength,
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_Lens_Shift
)
)
);
}
}
}