mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class MixedRealityToolkitShaderGUIUtilities

    A collection of shared functionality for MRTK shader GUIs.

    Inheritance
    Object
    MixedRealityToolkitShaderGUIUtilities
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public static class MixedRealityToolkitShaderGUIUtilities

    Methods

    DisplayDepthWriteWarning(MaterialEditor, String, String)

    Displays a depth write warning and fix button if depth buffer sharing is enabled.

    Declaration
    public static bool DisplayDepthWriteWarning(MaterialEditor materialEditor, string dialogTitle = "Depth Write", string dialogMessage = "Change this material to write to the depth buffer?")
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    The material editor to display the warning in.

    String dialogTitle

    The title of the dialog window to display when the user selects the fix button.

    String dialogMessage

    The message in the dialog window when the user selects the fix button.

    Returns
    Type Description
    Boolean

    True if the user opted to fix the warning, false otherwise.

    DisplayDepthWriteWarning(MaterialEditor, String, String)

    Displays a depth write warning and fix button if depth buffer sharing is enabled.

    Declaration
    public static bool DisplayDepthWriteWarning(MaterialEditor materialEditor, string dialogTitle = "Depth Write", string dialogMessage = "Change this material to write to the depth buffer?")
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    The material editor to display the warning in.

    String dialogTitle

    The title of the dialog window to display when the user selects the fix button.

    String dialogMessage

    The message in the dialog window when the user selects the fix button.

    Returns
    Type Description
    Boolean

    True if the user opted to fix the warning, false otherwise.

    In This Article
    • Methods
      • DisplayDepthWriteWarning(MaterialEditor, String, String)
      • DisplayDepthWriteWarning(MaterialEditor, String, String)
    Back to top Generated by DocFX