Class AnimationStackObject
- Namespace
- TMPEffects.TMPAnimations.Animations
A stack of TMPAnimation, allowing you to easily combine animations in one tag.
public class AnimationStackObject : TMPAnimation, ITMPAnimation, ITMPParameterValidator, INotifyObjectChanged
- Inheritance
-
AnimationStackObject
- Implements
- Inherited Members
Methods
Animate(CharData, IAnimationContext)
Animate the given character.
public override void Animate(CharData cData, IAnimationContext context)
Parameters
cData
CharDataData about the character.
context
IAnimationContextData about the animator.
GetNewCustomData()
Get a new custom data object for this animation.
public override object GetNewCustomData()
Returns
- object
The custom data object for this animation.
SetParameters(object, IDictionary<string, string>, ITMPKeywordDatabase)
Set the parameters for the animation.
public override void SetParameters(object customData, IDictionary<string, string> parameters, ITMPKeywordDatabase keywordDatabase)
Parameters
customData
objectThe custom data for this animation.
parameters
IDictionary<string, string>Parameters as key-value-pairs.
keywordDatabase
ITMPKeywordDatabaseThe keyword database used for parsing the parameter values.
ValidateParameters(IDictionary<string, string>, ITMPKeywordDatabase)
Validate the given parameters.
public override bool ValidateParameters(IDictionary<string, string> parameters, ITMPKeywordDatabase keywordDatabase)
Parameters
parameters
IDictionary<string, string>The parameters as key-value pairs
keywordDatabase
ITMPKeywordDatabaseThe keyword database used for parsing the parameter values
Returns
- bool
true if the parameters were successfully validated; false otherwise.