-
Notifications
You must be signed in to change notification settings - Fork 869
Expand file tree
/
Copy pathRenderingDebuggerRuntimeResources.cs
More file actions
67 lines (57 loc) · 2.29 KB
/
RenderingDebuggerRuntimeResources.cs
File metadata and controls
67 lines (57 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#if ENABLE_UIELEMENTS_MODULE && (UNITY_EDITOR || DEVELOPMENT_BUILD)
#define ENABLE_RENDERING_DEBUGGER_UI
#endif
using System;
#if ENABLE_RENDERING_DEBUGGER_UI
using UnityEngine.UIElements;
#endif
namespace UnityEngine.Rendering
{
[Serializable, HideInInspector]
[SupportedOnRenderPipeline]
[Categorization.CategoryInfo(Name = "R : Rendering Debugger Resources", Order = 100)]
[Categorization.ElementInfo(Order = 0)]
class RenderingDebuggerRuntimeResources : IRenderPipelineResources
{
enum Version
{
Initial,
Count,
Last = Count - 1
}
[SerializeField, HideInInspector]
private Version m_version = Version.Last;
int IRenderPipelineGraphicsSettings.version => (int)m_version;
bool IRenderPipelineGraphicsSettings.isAvailableInPlayerBuild => true;
#if ENABLE_RENDERING_DEBUGGER_UI
[SerializeField, ResourcePath("Runtime/Debugging/Runtime UI Resources/RuntimeDebugWindow_PanelSettings.asset")]
private PanelSettings m_PanelSettings;
/// <summary>Panel Settings Asset for the Rendering Debugger Runtime UI</summary>
public PanelSettings panelSettings
{
get => m_PanelSettings;
set => this.SetValueAndNotify(ref m_PanelSettings, value, nameof(m_PanelSettings));
}
[SerializeField, ResourcePaths(new []
{
"Runtime/Debugging/Runtime UI Resources/DebugWindowCommon.uss",
"Runtime/Debugging/Runtime UI Resources/RuntimeDebugWindow.uss"
})]
private StyleSheet[] m_StyleSheets;
/// <summary>StyleSheets for the Rendering Debugger Runtime UI</summary>
public StyleSheet[] styleSheets
{
get => m_StyleSheets;
set => this.SetValueAndNotify(ref m_StyleSheets, value, nameof(m_StyleSheets));
}
[SerializeField, ResourcePath("Runtime/Debugging/Runtime UI Resources/RuntimeDebugWindow.uxml")]
private VisualTreeAsset m_VisualTreeAsset;
/// <summary>Visual Tree Asset for the Rendering Debugger Runtime UI</summary>
public VisualTreeAsset visualTreeAsset
{
get => m_VisualTreeAsset;
set => this.SetValueAndNotify(ref m_VisualTreeAsset, value, nameof(m_VisualTreeAsset));
}
#endif
}
}