Highroad Engine v1.3
Classes | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Tools.MMAnimatorMirror Class Reference

This class will let you mirror the behaviour of an Animator's parameters on a Source Animator onto the ones of a Target Animator. Target will mirror Source. Only the parameters existing on both Target and Source will be considered, you'll need to have the same on both before entering runtime. More...

Inheritance diagram for MoreMountains.Tools.MMAnimatorMirror:

Classes

struct  MMAnimatorMirrorBind
 a struct used to store bindings More...
 

Public Attributes

Animator SourceAnimator
 the animator to mirror More...
 
Animator TargetAnimator
 the animator to mirror to More...
 

Protected Member Functions

virtual void Awake ()
 On Awake we initialize More...
 
virtual void Initialization ()
 Stores animation parameters hashes More...
 
virtual void Update ()
 On Update we mirror our behaviours More...
 
virtual void Mirror ()
 Copies animation parameter states from one animator to the other More...
 

Protected Attributes

AnimatorControllerParameter[] _sourceParameters
 
AnimatorControllerParameter[] _targetParameters
 
List< MMAnimatorMirrorBind_updateParameters
 

Detailed Description

This class will let you mirror the behaviour of an Animator's parameters on a Source Animator onto the ones of a Target Animator. Target will mirror Source. Only the parameters existing on both Target and Source will be considered, you'll need to have the same on both before entering runtime.

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.MMAnimatorMirror.Awake ( )
protectedvirtual

On Awake we initialize

◆ Initialization()

virtual void MoreMountains.Tools.MMAnimatorMirror.Initialization ( )
protectedvirtual

Stores animation parameters hashes

◆ Mirror()

virtual void MoreMountains.Tools.MMAnimatorMirror.Mirror ( )
protectedvirtual

Copies animation parameter states from one animator to the other

◆ Update()

virtual void MoreMountains.Tools.MMAnimatorMirror.Update ( )
protectedvirtual

On Update we mirror our behaviours

Member Data Documentation

◆ _sourceParameters

AnimatorControllerParameter [] MoreMountains.Tools.MMAnimatorMirror._sourceParameters
protected

◆ _targetParameters

AnimatorControllerParameter [] MoreMountains.Tools.MMAnimatorMirror._targetParameters
protected

◆ _updateParameters

List<MMAnimatorMirrorBind> MoreMountains.Tools.MMAnimatorMirror._updateParameters
protected

◆ SourceAnimator

Animator MoreMountains.Tools.MMAnimatorMirror.SourceAnimator

the animator to mirror

◆ TargetAnimator

Animator MoreMountains.Tools.MMAnimatorMirror.TargetAnimator

the animator to mirror to


The documentation for this class was generated from the following file: