Edytuj

Udostępnij za pośrednictwem


MixedRealityToolkitShaderGUIUtilities.DisplayDepthWriteWarning Method

Definition

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

public static bool DisplayDepthWriteWarning (UnityEditor.MaterialEditor materialEditor, string dialogTitle = "Depth Write", string dialogMessage = "Change this material to write to the depth buffer?");
static member DisplayDepthWriteWarning : UnityEditor.MaterialEditor * string * string -> bool
Public Shared Function DisplayDepthWriteWarning (materialEditor As MaterialEditor, Optional dialogTitle As String = "Depth Write", Optional dialogMessage As String = "Change this material to write to the depth buffer?") As Boolean

Parameters

materialEditor
UnityEditor.MaterialEditor

The material editor to display the warning in.

dialogTitle
String

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

dialogMessage
String

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

Returns

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

Applies to