Animancer v6.0 is currently available for testing.

Validate Class

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

Methods

Name Value Summary
AssertCanRemoveChild(AnimancerState, IList<AnimancerState>) void
[Assert-Conditional] Throws if the `state` was not actually assigned to its specified Animancer.AnimancerNode.Index in the `states`.
static
AssertNotLegacy(AnimationClip) void
[Assert-Conditional] Throws if the `clip` is marked as UnityEngine.AnimationClip.legacy.
static
AssertPlayable(AnimancerNode) void
[Assert-Conditional] Throws if the state's UnityEngine.Playables.Playable is invalid.
static
AssertRoot(AnimancerNode, AnimancerPlayable) void
[Assert-Conditional] Throws if the Animancer.AnimancerNode.Root is not the `root`.
static
Disable(OptionalWarning) void
[Assert-Conditional] Disables the specified warning type. Supports bitwise combinations.
static
Enable(OptionalWarning) void
[Assert-Conditional] Re-enables the specified warning type. Supports bitwise combinations.
static
Log(OptionalWarning, string, Object) void
[Assert-Conditional] Logs the `message` as a warning if the `type` is enabled.
static
SetEnabled(OptionalWarning, bool) void
[Assert-Conditional] Enables or disables the specified warning type. Supports bitwise combinations.
static