Class SetAnimatorParameterValueEffector
Change the animator values
Inheritance
SetAnimatorParameterValueEffector
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("Effector to change the value of an animator parameter", new string[] { "Unity/Animation" })]
public class SetAnimatorParameterValueEffector : AUnityEffector
Constructors
SetAnimatorParameterValueEffector(Event, Dictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Declaration
protected SetAnimatorParameterValueEffector(Event @event, Dictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Fields
animator
Declaration
[ConfigurationParameter("Animator", Necessity.Required)]
protected Animator animator
Field Value
animatorParameterName
Declaration
[ConfigurationParameter("Parameter Name", Necessity.Required)]
protected string animatorParameterName
Field Value
newValue
Declaration
[ConfigurationParameter("New Value", "Accepted types: int, float or bool", Necessity.Required)]
protected object newValue
Field Value
Methods
SafeEffectorUpdate()
Actual effector code. Note that this code will be executed in unity's thread
Declaration
public override void SafeEffectorUpdate()
Overrides