|
|
|
|
|
|
public sealed partial class HDRenderPipelineInspector : HDBaseEditor<HDRenderPipelineAsset> |
|
|
|
{ |
|
|
|
static readonly CED.IDrawer[] k_FrameSettings = new[] |
|
|
|
{ |
|
|
|
SerializedFrameSettingsUI.SectionRenderingPasses, |
|
|
|
SerializedFrameSettingsUI.SectionRenderingSettings |
|
|
|
}.Concat(CED.Select( |
|
|
|
{ |
|
|
|
SerializedFrameSettingsUI.SectionRenderingPasses, |
|
|
|
SerializedFrameSettingsUI.SectionRenderingSettings, |
|
|
|
CED.Select( |
|
|
|
SerializedLightLoopSettingsUI.SectionLightLoopSettings)) |
|
|
|
.Concat(new[] |
|
|
|
{ |
|
|
|
SerializedFrameSettingsUI.SectionXRSettings |
|
|
|
}) |
|
|
|
.ToArray(); |
|
|
|
SerializedLightLoopSettingsUI.SectionLightLoopSettings), |
|
|
|
SerializedFrameSettingsUI.SectionXRSettings |
|
|
|
}; |
|
|
|
|
|
|
|
SerializedProperty m_RenderPipelineResources; |
|
|
|
|
|
|
|
|
|
|
SerializedProperty m_SubsurfaceScatteringSettings; |
|
|
|
|
|
|
|
SerializedFrameSettings serializedFrameSettings = null; |
|
|
|
SerializedFrameSettingsUI SerializedFrameSettingsUI = new SerializedFrameSettingsUI(); |
|
|
|
SerializedFrameSettingsUI serializedFrameSettingsUI = new SerializedFrameSettingsUI(); |
|
|
|
|
|
|
|
void InitializeProperties() |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
serializedFrameSettings = new SerializedFrameSettings(properties.Find(x => x.serializedFrameSettings)); |
|
|
|
|
|
|
|
SerializedFrameSettingsUI.Reset(serializedFrameSettings, Repaint); |
|
|
|
serializedFrameSettingsUI.Reset(serializedFrameSettings, Repaint); |
|
|
|
} |
|
|
|
|
|
|
|
static void HackSetDirty(RenderPipelineAsset asset) |
|
|
|
|
|
|
CheckStyles(); |
|
|
|
|
|
|
|
serializedObject.Update(); |
|
|
|
serializedFrameSettingsUI.Update(); |
|
|
|
|
|
|
|
EditorGUILayout.PropertyField(m_RenderPipelineResources, s_Styles.renderPipelineResources); |
|
|
|
EditorGUILayout.Space(); |
|
|
|
|
|
|
SettingsUI(m_Target); |
|
|
|
|
|
|
|
k_FrameSettings.Draw(SerializedFrameSettingsUI, serializedFrameSettings, this); |
|
|
|
k_FrameSettings.Draw(serializedFrameSettingsUI, serializedFrameSettings, this); |
|
|
|
|
|
|
|
serializedObject.ApplyModifiedProperties(); |
|
|
|
} |