docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialDebugSettings

    Material Debug Settings.

    Inheritance
    object
    MaterialDebugSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    [Serializable]
    public class MaterialDebugSettings

    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
    int[]

    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
    bool

    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
    int

    debugViewGBuffer

    Current GBuffer Debug View.

    Declaration
    public int debugViewGBuffer { get; }
    Property Value
    Type Description
    int

    debugViewMaterial

    Current Debug View Material.

    Declaration
    public int[] debugViewMaterial { get; }
    Property Value
    Type Description
    int[]

    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
    bool

    True if any material debug display is enabled.

    IsDebugGBufferEnabled()

    Returns true if GBuffer debug is enabled.

    Declaration
    public bool IsDebugGBufferEnabled()
    Returns
    Type Description
    bool

    True if GBuffer debug is enabled.

    IsDebugViewMaterialEnabled()

    Returns true if Material debug is enabled.

    Declaration
    public bool IsDebugViewMaterialEnabled()
    Returns
    Type Description
    bool

    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(int)

    Set the current engine debug view.

    Declaration
    public void SetDebugViewEngine(int value)
    Parameters
    Type Name Description
    int value

    Desired engine debug view.

    SetDebugViewGBuffer(int)

    Set the current GBuffer debug view.

    Declaration
    public void SetDebugViewGBuffer(int value)
    Parameters
    Type Name Description
    int value

    Desired GBuffer debug view.

    SetDebugViewMaterial(int)

    Set the current material debug view.

    Declaration
    public void SetDebugViewMaterial(int value)
    Parameters
    Type Name Description
    int 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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)