Summary
[Editor-Conditional] Plays the specified `clip` if called in Edit Mode.
Syntax
[System.Diagnostics.Conditional(Strings.UnityEditor)]
public static void EditModePlay(this AnimationClip clip, Component component)
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
See Also
- Animancer.AnimancerUtilities.EditModeSampleAnimation(UnityEngine.AnimationClip,UnityEngine.Component,System.Single)