Summary
Enforces various rules throughout the system, most of which are compiled out if UNITY_ASSERTIONS is not defined
(by default, it is only defined in the Unity Editor and in Development Builds).
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Validate"]
class Type type-node
Syntax
public static class Validate
Properties
Name | Value | Summary |
---|---|---|
Permanently |
OptionalWarning |
[Assert-Only] Warnings that are automatically disabled and stored in
UnityEngine.PlayerPrefs .static
|
Methods
Name | Value | Summary |
---|---|---|
AssertCanRemoveChild |
void |
[Assert-Conditional]
Throws if the `state` was not actually assigned to its specified
Animancer.AnimancerNode.Index in
the `states`.
static
|
AssertNotLegacy |
void |
[Assert-Conditional] Throws if the `clip` is marked as
UnityEngine.AnimationClip.legacy .static
|
AssertPlayable |
void |
[Assert-Conditional] Throws if the `node`'s
UnityEngine.Playables.Playable is invalid.static
|
AssertRoot |
void |
[Assert-Conditional] Throws if the
Animancer.AnimancerNode.Root is not the `root`.static
|
Disable |
void |
[Animancer Extension] [Assert-Conditional]
Disables the specified warning type. Supports bitwise combinations.
static
|
DisableTemporarily |
OptionalWarning |
[Animancer Extension] [Assert-Only]
Disables the specified warnings and returns those that were previously enabled.
static
|
Enable |
void |
[Animancer Extension] [Assert-Conditional]
Enables the specified warning type. Supports bitwise combinations.
static
|
IsDisabled |
bool |
[Animancer Extension] [Assert-Only] Are all of the specified warning types disabled?
static
|
IsEnabled |
bool |
[Animancer Extension] [Assert-Only] Are none of the specified warning types disabled?
static
|
Log |
void |
[Animancer Extension] [Assert-Conditional]
Logs the `message` as a warning if the `type` is enabled.
static
|
SetEnabled |
void |
[Animancer Extension] [Assert-Conditional]
Enables or disables the specified warning type. Supports bitwise combinations.
static
|
ValueRule |
void |
Enforces the `rule` on the `value`.
static
|