Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question How do you reference this Mecanim animation state "Idle" programmatically?

Discussion in 'Animation' started by marzilladev, Feb 7, 2023.

  1. marzilladev


    Dec 10, 2021
    How do you check for the name of the current animation state? My research indicates it is actually called a layer. Sure enough, while debugging in VS, I was able to drill down all the way to it. But I'm having a hard time finding the exact path to this Idle state (circled in yellow) in order to reference it in code. Please see attached.

    Attached Files:

  2. Kybernetik


    Jan 3, 2013
    marzilladev likes this.