Hi,
The error means that the animation clip ("laughing" or "Talking") isn't in the list of animation clips on Shirley's Animation component.
If Shirley has an Animat
or component (and not an Animat
ion component), you should use a Set Animator State On Dialogue Event component instead. However, if you're using Unity's Standard Assets ThirdPersonController, see below.
HaiiroMukuro wrote:Also I got a problem for set enable on dialogue which the character moves continuously without pressing the controls. The problem occurs when you keep holding the movement controls and starts a conversation.
You may need to disable additional components or perform additional steps.
If you're using Unity's Standard Assets ThirdPersonController, here are the steps:
1. Add ThirdPersonUserControl to the Set Component Enabled On Dialogue Event component.
2. Add a Start Sequence On Dialogue Event component.
2a. Set the Trigger to OnConversation.
2b. Add an element to OnStart.
2c. Assign the ThirdPersonController GameObject as the element's Actor.
2d. Set the element's Sequence to:
Code: Select all
AnimatorFloat(Forward,0);
AnimatorFloat(Turn,0)
This will:
1. Turn off ThirdPersonUserControl during conversations. This prevents the user from issuing movement commands to the ThirdPersonController.
2. At the start of the conversation, set the ThirdPersonController's Animator parameters to tell the Animator to stop playing the movement animation (i.e., tell it to stop running).
Here's an example scene:
StdTPC_Example_2016-10-04.unitypackage