Unity5 Error: "Player' Animationevent 'Restartlevel' has no receiver! Are you Missing a Component?"

Asked

Viewed 690 times

1

Good night. I’m following a tutorial of a game and when I run it works, but soon hangs and appears this error: "'Player' Animationevent 'Restartlevel' has no receiver! Are you Missing a Component?" , the only difference you have of my game and the tutorial, is that in my appears this entity ENTRY and the tutorial does not appear. I’ve been researching and it seems to be something related to the animation of the player, but I can not identify the error. If anyone knows the answer, please tell me.inserir a descrição da imagem aqui

  • Your question is practically the same of this other one here. Although you have put more details, still missing information for someone to help you. What is the tutorial? And the code where you run the animations, how are you? If you share your project (or a minimum example that reproduces the problem), it is much easier for someone to have an interest in testing and helping you.

  • But knowing that this is something involving animation (in the other question could not know this), a more detailed search in Google returned this thread in the Unity forum. But without seeing your code you can not give any suggestion in this sense.

  • Ah, the Entry indicates what is the default state of the animation when the object is created/initialized. It seems strange that the machine of animation states of its object already begins in the state of "death" (Death). Maybe the little arrow of Entry should be directed to the state Idle, no? I don’t know if the problem also stems from this, but worth the test.

1 answer

1

With help from Luiz Vieira and looking at the sources he pointed out to me, can solve the problem.

The problem was that the transition from the ENTRY state, which indicates which default state the animation should be in, was connected to the wrong initial state. It was only I changed his connection from DEATH state to IDLE state that the error stopped being presented.

  • Not at all. I’m happy to help. But you don’t have to thank me in the text of the answer, because then it becomes clearer and objective. I edited it to try to improve (if you don’t like something, just undo the edit). In fact, to be even clearer to other users who in the future may have the same doubt, I would suggest you edit the answer to include a screenshot with the new state machine after its correction (it doesn’t have to be the whole screen, only the animation state machine). After you do this, I delete this my comment. :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.