Search Unity

Animator State tag question

Discussion in 'Scripting' started by inthemilkywat, Aug 21, 2019.

  1. inthemilkywat

    inthemilkywat

    Joined:
    Dec 29, 2013
    Posts:
    56
    When you're transitioning between 2 states that have different tags, will AnimatorStateInfo.IsTag return the tag of previous state or the one you are transitioning to?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    All I could do would be to read the docs. Did you look there first?

    It sounds like you might already have a test rig and be able to determine empirically what it does!

    Please post back if your experimentation reveals the answer.