FollowMousePosition Class

Summary

Controls Animancer parameters to make the character move towards the mouse position using Root Motion in a 2D Mixer.
Assembly
Animancer.dll
Namespace
Animancer.Samples.Mixers
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["FollowMousePosition"] class Type type-node

Syntax

[AddComponentMenu(Strings.SamplesMenuPrefix + "Mixers - Follow Mouse Position")]
[AnimancerHelpUrl(typeof(FollowMousePosition))]
public class FollowMousePosition : MonoBehaviour

Remarks

Sample: Directional Mixers

Attributes

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

Methods

Name Value Summary
Awake() void
OnDestroy() void
Update() void