Skip to content

Commit cf70de3

Browse files
authored
Merge pull request #8246 from Unity-Technologies/internal/6000.4/staging
Mirror Internal/6000.4/staging
2 parents ad99e68 + 7546dba commit cf70de3

File tree

189 files changed

+12674
-1675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+12674
-1675
lines changed

Packages/com.unity.render-pipelines.core/Editor/HeaderFoldout.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization.Configuration;
32
using UnityEngine;
43
using UnityEngine.UIElements;
54

Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.EnvironmentLibrarySidePanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void IEnvironmentDisplayer.Repaint()
428428
void OnFocus()
429429
{
430430
//OnFocus is called before OnEnable that open backend if not already opened, so only sync if backend is open
431-
if (LookDev.open)
431+
if (LookDev.open && LookDev.currentContext != null)
432432
{
433433
//If EnvironmentLibrary asset as been edited by the user (deletion),
434434
//update all view to use null environment if it was not temporary ones

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ void SetSelectedExecutionIndex(int executionIndex)
11311131
if (m_SelectedExecutionIndex != executionIndex)
11321132
{
11331133
m_SelectedExecutionIndex = executionIndex;
1134-
UpdateCurrentDebugData();
1134+
UpdateCurrentDebugData(true);
11351135
}
11361136

11371137
// Using a custom toolbar menu instead of default Dropdown in order to get access to allowDuplicateNames,
@@ -2032,7 +2032,7 @@ void UpdateStatusLabel()
20322032

20332033
string connectionStatus = m_IsDeviceConnected ? "Online" : "Offline";
20342034

2035-
bool isEditor = m_ConnectedDeviceName == "Editor";
2035+
bool isEditor = m_ConnectedDeviceName == k_EditorName;
20362036
string sourceLabel = isEditor ? "Source: Editor" : $"Source: {m_ConnectedDeviceName} ({connectionStatus})";
20372037

20382038
bool hasCapture = HasValidDebugData && m_LastDataCaptureTime != DateTime.MinValue;
@@ -2052,7 +2052,8 @@ void UpdateCurrentDebugData(bool force = false)
20522052
{
20532053
m_CurrentDebugData = RenderGraphDebugSession.GetDebugData(m_SelectedRenderGraph, selectedExecutionItem.id);
20542054

2055-
if (HasValidDebugData)
2055+
// Update timestamp when we get valid data, or when forcing an update
2056+
if (HasValidDebugData || force)
20562057
m_LastDataCaptureTime = DateTime.Now;
20572058
}
20582059
else
@@ -2066,6 +2067,8 @@ void UpdateCurrentDebugData(bool force = false)
20662067
currentGraphDropdown.style.display = DisplayStyle.None;
20672068
if (currentExecutionToolbarMenu != null)
20682069
currentExecutionToolbarMenu.style.display = DisplayStyle.None;
2070+
2071+
m_LastDataCaptureTime = DateTime.MinValue;
20692072
}
20702073

20712074
UpdateStatusLabel();
@@ -2170,6 +2173,7 @@ void OnPlayerConnected(int playerID)
21702173
void OnPlayerDisconnected(int playerID)
21712174
{
21722175
m_IsDeviceConnected = false;
2176+
m_ConnectedDeviceName = k_EditorName;
21732177

21742178
if (!m_Paused)
21752179
{

Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/AssemblyInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using System.Runtime.CompilerServices;
22

33
[assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Editor")]
4+
[assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Editor.Tests")]
45
[assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Runtime")]
56
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.Editor")]
7+
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.Editor.Tests")]
68
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.Runtime")]
79

810

Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Runtime.CompilerServices;
2+
3+
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Core.Runtime.Shared")]

Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using UnityEngine.Rendering;
2+
3+
// /!\ Some API shared through this bridge are in Editor assembly.
4+
// Be sure to not forget #if UNITY_EDITOR for them
5+
6+
namespace Unity.RenderPipelines.Core.Runtime.Shared.Bridge
7+
{
8+
#if UNITY_EDITOR
9+
internal static class RenderPipelineEditorUtilityBridge
10+
{
11+
internal static bool TryMigrateRenderingLayersToTagManager<T>(string[] renderingLayerNames)
12+
where T : RenderPipeline
13+
{
14+
return UnityEditor.Rendering.RenderPipelineEditorUtility.TryMigrateRenderingLayersToTagManager<T>(renderingLayerNames);
15+
}
16+
17+
internal static void ClearMigratedRenderPipelines()
18+
{
19+
UnityEditor.Rendering.RenderPipelineEditorUtility.ClearMigratedRenderPipelines();
20+
}
21+
}
22+
#endif
23+
}

Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared",
3+
"rootNamespace": "",
4+
"references": [],
5+
"includePlatforms": [],
6+
"excludePlatforms": [],
7+
"allowUnsafeCode": false,
8+
"overrideReferences": false,
9+
"precompiledReferences": [],
10+
"autoReferenced": true,
11+
"defineConstraints": [],
12+
"versionDefines": [],
13+
"noEngineReferences": false
14+
}

0 commit comments

Comments
 (0)