Unity Animator Error: 'Animator is not playing an AnimatorController' - Troubleshooting Guide
This error message indicates that there is an issue with the AnimatorController that you are trying to play. There are several potential causes for this error message, including:
-
The AnimatorController is not assigned to the Animator component: Make sure that you have assigned the correct AnimatorController to the Animator component in your scene.
-
The AnimatorController is not set up correctly: Check your AnimatorController to make sure that all of the necessary states, transitions, and parameters are set up correctly.
-
The Trigger parameter is not defined in the AnimatorController: If you are trying to set a trigger using the SetTrigger() method, make sure that the Trigger parameter is defined in the AnimatorController.
-
There is a typo or other error in the name of the Trigger parameter: Double-check the name of the Trigger parameter to make sure that it is spelled correctly and matches the name in the AnimatorController.
By addressing these potential causes, you should be able to resolve the issue and get your AnimatorController playing correctly.
原文地址: https://www.cveoy.top/t/topic/oztA 著作权归作者所有。请勿转载和采集!