Hi,
I just get start on learning Unity.
I downloaded the assert Unity Chan from Assert Store, and try to learn how to control a 3D model.
There is a sample Scene “locomotion” which has a C# script Auto Blink and Face Update on the model.
I am trying to learn how it controls the Eye Blinking, however, I cannot find one of the configuration.
In Face Update Script, it has a onCallChangeFace function, and I think it is for the part where the model to control the face override the original clip animation on face. However, I cannot find where it set the Event.
In Animator, it defaults loops in a idle states with a WAIT00 animation Clips. But I do not see the Event in the clip too, or in the inspector.
Is there anyway I can track down where the event is set from? Thanks
function in FaceUpdate
public void OnCallChangeFace (string str)
{
int ichecked = 0;
foreach (var animation in animations) {
if (str == animation.name) {
ChangeFace (str);
break;
} else if (ichecked <= animations.Length) {
ichecked++;
} else {
//str指定が間違っている時にはデフォルトで
str = "default@unitychan";
ChangeFace (str);
}
}
}