I’ve created a simple model with a simple animation in blender and imported them as fbx to Unity. The problem I’m having is that in my script I can’t stop the animation from playing. I’ve turned off the “play automatically” setting in Unity and my script does the following:
void Start() {
an = animation["Take 001"];
an.wrapMode = WrapMode.ClampForever;
an.weight = 1.0f;
an.enabled = true;
}
But the animation continues to play. If I check the normalizedTime
value it is always zero, but what I’m seeing on screen says differently. Does anyone have an idea of what I’m doing wrong?
Disclaimer: I’m a programmer helping a friend but I know next to nothing of blender or unity.