Skip to content

Commit 4fa99b2

Browse files
Fixed various issues with render graph viewer when entering playmode. #7040
1 parent 9ffcb2c commit 4fa99b2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

com.unity.render-pipelines.core/Editor/RenderGraph/RenderGraphViewer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,11 @@ void OnExecutionUnregistered(RenderGraph graph, string name)
660660

661661
void OnEnable()
662662
{
663+
// For some reason, when entering playmode, CreateGUI is not called again so we need to rebuild the UI because all references are lost.
664+
// Apparently it was not the case a while ago.
665+
if (m_Root == null)
666+
RebuildUI();
667+
663668
for (int i = 0; i < (int)RenderGraphResourceType.Count; ++i)
664669
m_ResourceElementsInfo[i] = new DynamicArray<ResourceElementInfo>();
665670

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4040
- Fixed performance penalty when hardware DRS was used between multiple views like editor or other gameviews (case 1354382)
4141
- Fixed PBR Dof using the wrong resolution for COC min/max filter, and also using the wrong parameters when running post TAAU stabilization. (case 1388961)
4242
- Fixed RTGI potentially reading from outside the half res pixels due to missing last pixel during the upscale pass (case 1400310).
43+
- Fixed various issues with render graph viewer when entering playmode.
4344

4445
## [12.1.4] - 2021-12-07
4546

0 commit comments

Comments
 (0)