DebugUtilities.DebugAssert Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
DebugAssert(Boolean) |
Asserts a condition. |
DebugAssert(Boolean, String) |
Asserts a condition. |
Asserts a condition.
C++
public:
static void DebugAssert(bool condition);
public static void DebugAssert (bool condition);
static member DebugAssert : bool -> unit
Public Shared Sub DebugAssert (condition As Boolean)
Parameters
- condition
- Boolean
The condition that is expected to be true.
Applies to
MRTK2 Unity 2018 2.7.0 and other versions
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Asserts a condition.
C++
public:
static void DebugAssert(bool condition, System::String ^ message);
public static void DebugAssert (bool condition, string message);
static member DebugAssert : bool * string -> unit
Public Shared Sub DebugAssert (condition As Boolean, message As String)
Parameters
- condition
- Boolean
The condition that is expected to be true.
- message
- String
The message to display if the condition evaluates to false.
Applies to
MRTK2 Unity 2018 2.7.0 and other versions
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |