Validate.

AssertAnimationClip(AnimationClip, bool, string) Method

Summary

[Assert-Conditional] Throws if the `clip` is null, not an asset, or marked as UnityEngine.AnimationClip.legacy.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
Validate

Syntax

[System.Diagnostics.Conditional(Strings.Assertions)]
public static void AssertAnimationClip(AnimationClip clip, bool throwIfNull, string operation)

Attributes

Type Description
ConditionalAttribute

Parameters

Name Type Description
clip AnimationClip
throwIfNull bool
operation string

Return Value

Type Description
void