ReSharper 2025.3 Help

Code inspection: There is no animator state with the same name in the project.

This inspection reports animator state names passed to Animator.Play(...) that do not match any known animator state in the project.

The inspection only works when asset indexing is enabled and Unity assets are available in text format, because it needs to read animator state names from project assets.

Example

In this example, the "Attack" state name is used, but it does not exist in the indexed project assets.

using UnityEngine; public class Example : MonoBehaviour { public Animator animator; private void Start() { // Reported: "Attack" state not found in animator assets animator.Play("Attack"); } }
using UnityEngine; public class Example : MonoBehaviour { public Animator animator; private void Start() { // Use an animator state that exists in the project animator.Play("Idle"); } }

Quick-fix

This inspection does not provide a dedicated quick-fix. Fix it manually by using an existing animator state name.

26 March 2026