Class CurveHideAnimation
- Namespace
- TMPEffects.TMPAnimations.ShowAnimations
public class CurveHideAnimation : TMPHideAnimation, ITMPAnimation, ITMPParameterValidator, INotifyObjectChanged
- Inheritance
-
CurveHideAnimation
- Implements
- Inherited Members
Fields
animation
public TMPAnimation animation
Field Value
curve
public AnimationCurve curve
Field Value
- AnimationCurve
duration
public float duration
Field Value
Methods
Animate(CharData, IAnimationContext)
Animate the given character.
public override void Animate(CharData cData, IAnimationContext context)
Parameters
cDataCharDataData about the character.
contextIAnimationContextData 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
customDataobjectThe custom data for this animation.
parametersIDictionary<string, string>Parameters as key-value-pairs.
keywordDatabaseITMPKeywordDatabaseThe 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
parametersIDictionary<string, string>The parameters as key-value pairs
keywordDatabaseITMPKeywordDatabaseThe keyword database used for parsing the parameter values
Returns
- bool
true if the parameters were successfully validated; false otherwise.