I can't find a function in the Animation Event dropdown list.,Function not listed in Animation Event list.

Hello!
I can’t find my function listed in the dropdown menu under Animation Event. I have searched everywhere and can’t find any help anywhere. Also, I am new to unity.

    public void LoadNextLevel() {
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
        Debug.Log("nxt");
    }

,Hello!
I am having a problem where my function is not listed in the dropdown menu under a Animation Event. I marked my animation as ‘public’ and searched it up a lot recently and nothing is working. Please help & I am new to unity.

    public void LoadNextLevel() {
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
        Debug.Log("nxt");
    }

The script containing the function has to be has to be assigned to the GameObject from which the event is fired. Let me know if this helped. Have a nice day :smiley: