AnimancerUtilities.

EditModePlay(AnimationClip, Component) Method

Summary

[Editor-Conditional] Plays the specified `clip` if called in Edit Mode.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerUtilities

Syntax

[System.Diagnostics.Conditional(Strings.UnityEditor)]
public static void EditModePlay(this AnimationClip clip, Component component)

Remarks

This method is safe to call during UnityEngine.MonoBehaviour.OnValidate.

Attributes

Type Description
ConditionalAttribute

Parameters

Name Type Description
clip AnimationClip The animation to apply. If null, this method does nothing.
component Component The animation will be played on an Animancer.IAnimancerComponent on the same object as this or on any of its parents or children. If null, this method does nothing.

Return Value

Type Description
void

See Also

  • Animancer.AnimancerUtilities.EditModeSampleAnimation(UnityEngine.AnimationClip,UnityEngine.Component,System.Single)