Class MixedRealityToolkitShaderGUIUtilities
A collection of shared functionality for MRTK shader GUIs.
Inherited Members
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. |