Why isnt any of my Animations playing

Hello!

Some might know that i have had this question before, however i wanted to make a Video that in Detail explains my exact Problem since it seems VERY Specific to me.

For Clarification i made a Video:

As you can see in the Video, the Animations are being fired and they play, just not in Playmode. When it comes to code it all seems to work great. But the Animations are just not playing in game mode.

Why is that? Are my Components in the Hierarchy wrong, or am i overseeing something?

If it is needed: This is the Door1 and Door2 script since they have seperate animations.
(They only differ in what Triggers they shoot)

using UnityEngine;

public class Door1 : MonoBehaviour, IInteract
{
    Animator animator;


    private void Start()
    {
        animator = GetComponentInParent<Animator>();
    }

    public void Open()
    { animator.SetTrigger("D1 Open"); }

    public void Close()
    { animator.SetTrigger("D1 Close"); }


}

Thank you for your Patience

Can you check the names of the curves in your clips to ensure that the name of your path is correct? I noticed that in the model you imported there are names like “Cube…” but not “D1” “D2”. Have you perhaps modified the name of these GameObjects, which could result in your animation curves not being able to find the corresponding properties?

1 Like