Hi,Hi there,
How to I trigger animation clips or variables that trigger animation clips through the dialogue system? I want to make it so I can activate specific animations on certain responses or dialogue sequences.
Use a sequencer command in your dialogue entry’s Sequence field. If you’re using Legacy Animation, use the Animation() command. If you’re using a Mecanim Animator, use AnimatorPlay() to crossfade to a state, AnimatorTrigger() to set a trigger parameter, or one of the other Animator-related commands as fits your needs.
For example, say you want a Mecanim-controlled character to play the “Curtsy” state. Make your dialogue entry look something like this:
- Dialogue Text: “Pleasure to meet you.”
- Sequence: AnimatorPlayWait(Curtsy)