Summary
Plays an animation to demonstrate the basic usage of Animancer.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Examples .Basics - Base Types
-
- MonoBehaviour
graph BT
Type-->Base0["MonoBehaviour"]
Type["PlayAnimationOnEnable"]
class Type type-node
Syntax
[AddComponentMenu(Strings.ExamplesMenuPrefix + "Basics - Play Animation On Enable")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(Basics) + "/" + nameof(PlayAnimationOnEnable))]
public sealed class PlayAnimationOnEnable : MonoBehaviour
Examples
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.
Attributes
Type | Description |
---|---|
AddComponentMenu | |
HelpURLAttribute |