Class MaterialDebugSettings
Material Debug Settings.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public class MaterialDebugSettings : object
Fields
debugViewMaterialCommonValue
Current material shared properties debug view.
Declaration
public MaterialSharedProperty debugViewMaterialCommonValue
Field Value
Type | Description |
---|---|
MaterialSharedProperty |
debugViewMaterialGBufferStrings
List of material debug view names.
Declaration
public static GUIContent[] debugViewMaterialGBufferStrings
Field Value
Type | Description |
---|---|
GUIContent[] |
debugViewMaterialGBufferValues
List of material debug views values.
Declaration
public static int[] debugViewMaterialGBufferValues
Field Value
Type | Description |
---|---|
Int32[] |
materialValidateHighColor
Color for displaying materials using an albedo value that is too high.
Declaration
public Color materialValidateHighColor
Field Value
Type | Description |
---|---|
Color |
materialValidateLowColor
Color for displaying materials using an albedo value that is too low.
Declaration
public Color materialValidateLowColor
Field Value
Type | Description |
---|---|
Color |
materialValidateTrueMetal
Enable display of materials using a true metallic value.
Declaration
public bool materialValidateTrueMetal
Field Value
Type | Description |
---|---|
Boolean |
materialValidateTrueMetalColor
Color for displaying materials using a true metallic color.
Declaration
public Color materialValidateTrueMetalColor
Field Value
Type | Description |
---|---|
Color |
Properties
debugViewEngine
Current Engine Debug View.
Declaration
public int debugViewEngine { get; }
Property Value
Type | Description |
---|---|
Int32 |
debugViewGBuffer
Current GBuffer Debug View.
Declaration
public int debugViewGBuffer { get; }
Property Value
Type | Description |
---|---|
Int32 |
debugViewMaterial
Current Debug View Material.
Declaration
public int[] debugViewMaterial { get; }
Property Value
Type | Description |
---|---|
Int32[] |
debugViewProperties
Current Properties Debug View.
Declaration
public DebugViewProperties debugViewProperties { get; }
Property Value
Type | Description |
---|---|
DebugViewProperties |
debugViewVarying
Current Varying Debug View.
Declaration
public DebugViewVarying debugViewVarying { get; }
Property Value
Type | Description |
---|---|
DebugViewVarying |
Methods
DisableMaterialDebug()
Disable all current material debug views.
Declaration
public void DisableMaterialDebug()
IsDebugDisplayEnabled()
Returns true if any material debug display is enabled.
Declaration
public bool IsDebugDisplayEnabled()
Returns
Type | Description |
---|---|
Boolean | True if any material debug display is enabled. |
IsDebugGBufferEnabled()
Returns true if GBuffer debug is enabled.
Declaration
public bool IsDebugGBufferEnabled()
Returns
Type | Description |
---|---|
Boolean | True if GBuffer debug is enabled. |
IsDebugViewMaterialEnabled()
Returns true if Material debug is enabled.
Declaration
public bool IsDebugViewMaterialEnabled()
Returns
Type | Description |
---|---|
Boolean | True if Material debug is enabled. |
SetDebugViewCommonMaterialProperty(MaterialSharedProperty)
Set the current shared material properties debug view.
Declaration
public void SetDebugViewCommonMaterialProperty(MaterialSharedProperty value)
Parameters
Type | Name | Description |
---|---|---|
MaterialSharedProperty | value | Desired shared material property to display. |
SetDebugViewEngine(Int32)
Set the current engine debug view.
Declaration
public void SetDebugViewEngine(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | Desired engine debug view. |
SetDebugViewGBuffer(Int32)
Set the current GBuffer debug view.
Declaration
public void SetDebugViewGBuffer(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | Desired GBuffer debug view. |
SetDebugViewMaterial(Int32)
Set the current material debug view.
Declaration
public void SetDebugViewMaterial(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | Desired material debug view. |
SetDebugViewProperties(DebugViewProperties)
Set the current Material Property debug view.
Declaration
public void SetDebugViewProperties(DebugViewProperties value)
Parameters
Type | Name | Description |
---|---|---|
DebugViewProperties | value | Desired property debug view. |
SetDebugViewVarying(DebugViewVarying)
Set current varying debug view.
Declaration
public void SetDebugViewVarying(DebugViewVarying value)
Parameters
Type | Name | Description |
---|---|---|
DebugViewVarying | value | Desired varying debug view. |