Next: , Previous: , Up: Interaction.Output   [Contents][Index]


9.2.3 Message Animator

Component: MessageAnimator

This component sends Animator triggers when it receives the ’TriggerAnimation’ message. This allows any message sender to cause Animator state transitions for controlling logic or animation. It can also send a trigger that’s not included here by receiving the ’TriggerSpecificAnimation’ message which takes the name of the trigger as an argument.

Optional Field of MessageAnimator: string returnTrigger

Optional trigger to send on the second and every alternating time after that

Default value: ""

Optional Field of MessageAnimator: Animator animator

Reference to the Animator component we are using, if none specified Message Animator will try to find one on this object

Message on MessageAnimator: TriggerAnimation ()

Sends the ’Trigger’ defined above to the Animator. Sends the ’Return Trigger’ the second time it’s called.

Message on MessageAnimator: TriggerSpecificAnimation (string)

Send any trigger you like to the Animator even if it’s not defined above

Argument: The Mecanim trigger you would like to invoke

Optional Field of MessageAnimator: string returnTrigger

Optional trigger to send on the second and every alternating time after that

Default value: ""

Optional Field of MessageAnimator: Animator animator

Reference to the Animator component we are using, if none specified Message Animator will try to find one on this object

Message on MessageAnimator: TriggerAnimation ()

Sends the ’Trigger’ defined above to the Animator. Sends the ’Return Trigger’ the second time it’s called.

Message on MessageAnimator: TriggerSpecificAnimation (string)

Send any trigger you like to the Animator even if it’s not defined above

Argument: The Mecanim trigger you would like to invoke


Next: , Previous: , Up: Interaction.Output   [Contents][Index]