PlayAnimationOnClick Class

Summary

Starts with an idle animation and performs an action when the user clicks the mouse, then returns to idle.
Assembly
Animancer.dll
Namespace
Animancer.Samples.Basics
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["PlayAnimationOnClick"] class Type type-node

Syntax

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

Remarks

Sample: Basic Action

Attributes

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

Methods

Name Value Summary
OnEnable() void
Update() void