static void Drawer_SectionPrimarySettings(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { EditorGUILayout.PropertyField(d.renderPipelineResources, renderPipelineResourcesContent); EditorGUILayout.PropertyField(d.diffusionProfileSettings, diffusionProfileSettingsContent); // EditorGUILayout.PropertyField(d.allowShaderVariantStripping, enableShaderVariantStrippingContent); EditorGUILayout.PropertyField(d.enableSRPBatcher, enableSRPBatcher); }
static void Drawer_TitleDefaultFrameSettings(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { GUILayout.BeginHorizontal(); EditorGUILayout.LabelField(defaultFrameSettingsContent, EditorStyles.boldLabel); EditorGUI.BeginChangeCheck(); selectedFrameSettings = (SelectedFrameSettings)EditorGUILayout.EnumPopup(selectedFrameSettings); if (EditorGUI.EndChangeCheck()) { s.isSectionExpandedCamera.value = false; s.isSectionExpandedBakedOrCustomReflection.value = false; s.isSectionExpandedRealtimeReflection.value = false; switch (selectedFrameSettings) { case SelectedFrameSettings.Camera: s.isSectionExpandedCamera.value = true; break; case SelectedFrameSettings.BakedOrCustomReflection: s.isSectionExpandedBakedOrCustomReflection.value = true; break; case SelectedFrameSettings.RealtimeReflection: s.isSectionExpandedRealtimeReflection.value = true; break; } } GUILayout.EndHorizontal(); }
void OnEnable() { m_SerializedHDRenderPipeline = new SerializedHDRenderPipelineAsset(serializedObject); m_HDRenderPipelineUI.Reset(m_SerializedHDRenderPipeline, Repaint); HDRenderPipelineUI.Init(m_HDRenderPipelineUI, m_SerializedHDRenderPipeline, this); }
static void Drawer_TitleDefaultFrameSettings(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { GUILayout.BeginHorizontal(); EditorGUILayout.LabelField(defaultFrameSettingsContent, EditorStyles.boldLabel); EditorGUI.BeginChangeCheck(); selectedFrameSettings = (SelectedFrameSettings)EditorGUILayout.EnumPopup(selectedFrameSettings); if (EditorGUI.EndChangeCheck()) { Init(s, d, o); } GUILayout.EndHorizontal(); }
static void Drawer_SectionPrimarySettings(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { EditorGUILayout.PropertyField(d.renderPipelineResources, renderPipelineResourcesContent); HDRenderPipelineAsset hdrpAsset = d.serializedObject.targetObject as HDRenderPipelineAsset; hdrpAsset.renderPipelineEditorResources = EditorGUILayout.ObjectField(renderPipelineEditorResourcesContent, hdrpAsset.renderPipelineEditorResources, typeof(HDRenderPipelineEditorResources), allowSceneObjects: false) as HDRenderPipelineEditorResources; EditorGUILayout.PropertyField(d.diffusionProfileSettings, diffusionProfileSettingsContent); // EditorGUILayout.PropertyField(d.allowShaderVariantStripping, enableShaderVariantStrippingContent); EditorGUILayout.PropertyField(d.enableSRPBatcher, enableSRPBatcher); }
static public void Init(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { s.isSectionExpandedCamera.value = false; s.isSectionExpandedBakedOrCustomReflection.value = false; s.isSectionExpandedRealtimeReflection.value = false; switch (selectedFrameSettings) { case SelectedFrameSettings.Camera: s.isSectionExpandedCamera.value = true; break; case SelectedFrameSettings.BakedOrCustomReflection: s.isSectionExpandedBakedOrCustomReflection.value = true; break; case SelectedFrameSettings.RealtimeReflection: s.isSectionExpandedRealtimeReflection.value = true; break; } }
static void Drawer_SectionPrimarySettings(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { EditorGUILayout.PropertyField(d.renderPipelineResources, _.GetContent("Render Pipeline Resources|Set of resources that need to be loaded when creating stand alone")); EditorGUILayout.PropertyField(d.diffusionProfileSettings, _.GetContent("Diffusion Profile Settings")); EditorGUILayout.PropertyField(d.allowShaderVariantStripping, _.GetContent("Enable Shader Variant Stripping (experimental)")); }
static void Drawer_TitleDefaultFrameSettings(HDRenderPipelineUI s, SerializedHDRenderPipelineAsset d, Editor o) { EditorGUILayout.LabelField(_.GetContent("Default Frame Settings"), EditorStyles.boldLabel); }