DebugUtilities.DebugAssert Method

Definition

Overloads

DebugAssert(Boolean)

Asserts a condition.

DebugAssert(Boolean, String)

Asserts a condition.

DebugAssert(Boolean)

Asserts a condition.

C++
public:
 static void DebugAssert(bool condition);

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

DebugAssert(Boolean, String)

Asserts a condition.

C++
public:
 static void DebugAssert(bool condition, System::String ^ message);

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