protected virtual void Draw(TSerialized serialized, Editor owner) { HDProbeUI.Drawer <TProvider> .DrawToolbars(serialized, owner); EditorGUI.BeginChangeCheck(); showChromeGizmo = EditorGUILayout.Toggle(EditorGUIUtility.TrTextContent("Show Chrome Gizmo"), showChromeGizmo); if (EditorGUI.EndChangeCheck()) { SceneView.RepaintAll(); } HDProbeUI.Drawer <TProvider> .DrawPrimarySettings(serialized, owner); //note: cannot use 'using CED = something' due to templated type passed. CoreEditorDrawer <TSerialized> .Group( CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_ProxySettingsHeader, HDProbeUI.Expandable.Projection, HDProbeUI.k_ExpandedState, HDProbeUI.Drawer <TProvider> .DrawProjectionSettings), CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_InfluenceVolumeHeader, HDProbeUI.Expandable.Influence, HDProbeUI.k_ExpandedState, HDProbeUI.Drawer <TProvider> .DrawInfluenceSettings, HDProbeUI.Drawer_DifferentShapeError ), CoreEditorDrawer <TSerialized> .AdvancedFoldoutGroup(HDProbeUI.k_CaptureSettingsHeader, HDProbeUI.Expandable.Capture, HDProbeUI.k_ExpandedState, (s, o) => s.GetEditorOnlyData(SerializedHDProbe.EditorOnlyData.CaptureSettingsIsAdvanced), (s, o) => s.ToggleEditorOnlyData(SerializedHDProbe.EditorOnlyData.CaptureSettingsIsAdvanced), CoreEditorDrawer <TSerialized> .Group(DrawAdditionalCaptureSettings, HDProbeUI.Drawer <TProvider> .DrawCaptureSettings ), HDProbeUI.Drawer <TProvider> .DrawAdvancedCaptureSettings ), CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_CustomSettingsHeader, HDProbeUI.Expandable.Custom, HDProbeUI.k_ExpandedState, HDProbeUI.Drawer <TProvider> .DrawCustomSettings), CoreEditorDrawer <TSerialized> .Group(HDProbeUI.Drawer <TProvider> .DrawBakeButton) ).Draw(serialized, owner); }
protected virtual void Draw(TSerialized serialized, Editor owner) { HDProbeUI.Drawer <TProvider> .DrawToolbars(serialized, owner); HDProbeUI.Drawer <TProvider> .DrawPrimarySettings(serialized, owner); //note: cannot use 'using CED = something' due to templated type passed. CoreEditorDrawer <TSerialized> .Group( CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_ProxySettingsHeader, HDProbeUI.Expandable.Projection, HDProbeUI.k_ExpandedState, HDProbeUI.Drawer <TProvider> .DrawProjectionSettings), CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_InfluenceVolumeHeader, HDProbeUI.Expandable.Influence, HDProbeUI.k_ExpandedState, HDProbeUI.Drawer <TProvider> .DrawInfluenceSettings, HDProbeUI.Drawer_DifferentShapeError ), CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_CaptureSettingsHeader, HDProbeUI.Expandable.Capture, HDProbeUI.k_ExpandedState, DrawAdditionalCaptureSettings, HDProbeUI.Drawer <TProvider> .DrawCaptureSettings), CoreEditorDrawer <TSerialized> .FoldoutGroup(HDProbeUI.k_CustomSettingsHeader, HDProbeUI.Expandable.Custom, HDProbeUI.k_ExpandedState, HDProbeUI.Drawer <TProvider> .DrawCustomSettings), CoreEditorDrawer <TSerialized> .Group(HDProbeUI.Drawer <TProvider> .DrawBakeButton) ).Draw(serialized, owner); }