Summary
[Assert-Conditional]
Throws an
UnityEngine.Assertions.AssertionException if the `condition` is false.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
[System.Diagnostics.Conditional(Strings.Assertions)]
public static void Assert(bool condition, Object message)
Remarks
This method is similar to
UnityEngine.Debug.Assert(System.Boolean,System.Object), but it throws an exception instead of
just logging the `message`.
Attributes
| Type | Description |
|---|---|
| ConditionalAttribute |
Parameters
| Name | Type | Description |
|---|---|---|
| condition | bool | |
| message | Object |
Return Value
| Type | Description |
|---|---|
| void |