PlayAnimationOnEnable Class

Summary

Plays an animation to demonstrate the basic usage of Animancer.
Assembly
Animancer.dll
Namespace
Animancer.Samples.Basics
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["PlayAnimationOnEnable"] class Type type-node

Syntax

[AddComponentMenu(Strings.SamplesMenuPrefix + "Basics - Play Animation On Enable")]
[AnimancerHelpUrl(typeof(PlayAnimationOnEnable))]
public class PlayAnimationOnEnable : MonoBehaviour

Remarks

If you actually want to only play one animation on an object and don't need any of the other features of Animancer, you can use the Animancer.SoloAnimation component to do so without needing an extra script.

Sample: Quick Play

Attributes

Type Description
AddComponentMenu
AnimancerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Animancer's documentation.

Methods

Name Value Summary
OnEnable() void