Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.MMAnimationParameter Class Reference

A helper class that will hash a animation parameter and update it on demand. More...

Inherits MonoBehaviour.

Public Member Functions

virtual void SetTrigger ()
 Sets the trigger of the specified name.
virtual void SetInt (int value)
 Sets the int of the specified name to the specified value.
virtual void SetFloat (float value)
 Sets the float of the specified name to the specified value.
virtual void SetBool (bool value)
 Sets the bool of the specified name to the specified value.

Public Attributes

string ParameterName
 the name of the animation parameter to hash
Animator TargetAnimator
 the animator to update

Protected Member Functions

virtual void Awake ()
 On awake we initialize our class.
virtual void Initialization ()
 Hashes the parameter name into an int.

Protected Attributes

int _parameter

Detailed Description

A helper class that will hash a animation parameter and update it on demand.

Member Function Documentation

◆ Awake()

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

On awake we initialize our class.

◆ Initialization()

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

Hashes the parameter name into an int.

◆ SetBool()

virtual void MoreMountains.Tools.MMAnimationParameter.SetBool ( bool value)
virtual

Sets the bool of the specified name to the specified value.

◆ SetFloat()

virtual void MoreMountains.Tools.MMAnimationParameter.SetFloat ( float value)
virtual

Sets the float of the specified name to the specified value.

◆ SetInt()

virtual void MoreMountains.Tools.MMAnimationParameter.SetInt ( int value)
virtual

Sets the int of the specified name to the specified value.

◆ SetTrigger()

virtual void MoreMountains.Tools.MMAnimationParameter.SetTrigger ( )
virtual

Sets the trigger of the specified name.

Member Data Documentation

◆ _parameter

int MoreMountains.Tools.MMAnimationParameter._parameter
protected

◆ ParameterName

string MoreMountains.Tools.MMAnimationParameter.ParameterName

the name of the animation parameter to hash

◆ TargetAnimator

Animator MoreMountains.Tools.MMAnimationParameter.TargetAnimator

the animator to update


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