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

Use this class to offset an animation by a random range More...

Inheritance diagram for MoreMountains.Tools.MMOffsetAnimation:

Public Member Functions

virtual void OffsetCurrentAnimation ()
 offsets the target animation More...
 

Public Attributes

float MinimumRandomRange = 0f
 the minimum amount (in seconds) by which to offset the animation More...
 
float MaximumRandomRange = 1f
 the maximum amount (in seconds) by which to offset the animation More...
 
int AnimationLayerID = 0
 the layer to affect More...
 
bool OffsetOnStart = true
 whether or not to apply that offset on Start More...
 
bool DisableAfterOffset = true
 whether or not to self disable after offsetting More...
 

Protected Member Functions

virtual void Awake ()
 On awake we store our animator More...
 
virtual void Start ()
 On Start we offset our animation More...
 

Protected Attributes

Animator _animator
 
AnimatorStateInfo _stateInfo
 

Detailed Description

Use this class to offset an animation by a random range

Member Function Documentation

◆ Awake()

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

On awake we store our animator

◆ OffsetCurrentAnimation()

virtual void MoreMountains.Tools.MMOffsetAnimation.OffsetCurrentAnimation ( )
virtual

offsets the target animation

◆ Start()

virtual void MoreMountains.Tools.MMOffsetAnimation.Start ( )
protectedvirtual

On Start we offset our animation

Member Data Documentation

◆ _animator

Animator MoreMountains.Tools.MMOffsetAnimation._animator
protected

◆ _stateInfo

AnimatorStateInfo MoreMountains.Tools.MMOffsetAnimation._stateInfo
protected

◆ AnimationLayerID

int MoreMountains.Tools.MMOffsetAnimation.AnimationLayerID = 0

the layer to affect

◆ DisableAfterOffset

bool MoreMountains.Tools.MMOffsetAnimation.DisableAfterOffset = true

whether or not to self disable after offsetting

◆ MaximumRandomRange

float MoreMountains.Tools.MMOffsetAnimation.MaximumRandomRange = 1f

the maximum amount (in seconds) by which to offset the animation

◆ MinimumRandomRange

float MoreMountains.Tools.MMOffsetAnimation.MinimumRandomRange = 0f

the minimum amount (in seconds) by which to offset the animation

◆ OffsetOnStart

bool MoreMountains.Tools.MMOffsetAnimation.OffsetOnStart = true

whether or not to apply that offset on Start


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