Table of Contents

Method Assert

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Assert(bool, string, Object)

Checks whether the condition is true, and logs an error message if it is not (only in DEBUG builds).

[Version(1, 2, 0)]
[Conditional("DEBUG")]
public static void Assert(bool condition, string message, Object context = null)

Parameters

condition bool

The condition to check.

message string

The error message to log if the condition is false.

context Object

Optional Unity Object context for the log message.