Summary
[Editor-Conditional]
Applies the effects of the animation `clip` to the UnityEngine.Component.gameObject.
Syntax
[System.Diagnostics.Conditional(Strings.UnityEditor)]
public static void EditModeSampleAnimation(this AnimationClip clip, Component component, float time = 0)
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 applied to an UnityEngine.Animator or UnityEngine.Animation component on the same
object as this or on any of its parents or children. If null, this method does nothing.
|
| time |
float |
Determines which part of the animation to apply (in seconds). |
Return Value
See Also
- Animancer.AnimancerUtilities.EditModePlay(UnityEngine.AnimationClip,UnityEngine.Component)