Skip to content

Commit 0fd87f3

Browse files
LookDev menu item entry is now disabled if the current pipeline does not support it. (#2260)
* LookDev menu item entry is now disabled if the current pipeline does not support it. * Update changelog
1 parent 79fb235 commit 0fd87f3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

com.unity.render-pipelines.core/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ The version number for this package has increased due to a version update of a r
1919
- Fixed the scene view to scale correctly when hardware dynamic resolution is enabled (case 1158661)
2020
- Fixed game view artifacts on resizing when hardware dynamic resolution was enabled
2121

22+
### Changed
23+
- LookDev menu item entry is now disabled if the current pipeline does not support it.
24+
2225
## [10.0.0] - 2019-06-10
2326

2427
### Added

com.unity.render-pipelines.core/Editor/LookDev/LookDev.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ static Context defaultContext
4646
internal static IViewDisplayer currentViewDisplayer => s_ViewDisplayer;
4747
internal static IEnvironmentDisplayer currentEnvironmentDisplayer => s_EnvironmentDisplayer;
4848

49+
[MenuItem("Window/Render Pipeline/Look Dev", false, 10200)]
50+
static void OpenLookDev() => Open();
51+
52+
[MenuItem("Window/Render Pipeline/Look Dev", true, 10200)]
53+
static bool LookDevAvailable() => supported;
54+
4955
/// <summary>State of the LookDev window</summary>
5056
public static bool open { get; private set; }
5157

com.unity.render-pipelines.high-definition/Editor/RenderPipeline/HDRenderPipelineEditor.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,4 @@ public override void OnInspectorGUI()
3434
serialized.Apply();
3535
}
3636
}
37-
38-
// Moving lookdev menu to package implementing them.
39-
// It must be done in editor scripts.
40-
// Remaining of LookDev integration is done in HDRenderPipeline.LookDev
41-
static class LookDevMenu
42-
{
43-
[MenuItem("Window/Render Pipeline/Look Dev", false, 10200)]
44-
static void OpenLookDev() => LookDev.LookDev.Open();
45-
}
4637
}

0 commit comments

Comments
 (0)