Search Unity

Question Block transition to State machine

Discussion in 'Animation' started by Arficord, Mar 16, 2023.

  1. Arficord

    Arficord

    Joined:
    Mar 31, 2019
    Posts:
    5
    Is there any possible way to prevent the transition from "Any State" to "MyStateMachine" if any clip in this state machine is currently playing?

    I do not want to add new parameters to the animator.
    I have a look at StateMachineBehaviour, but it looks like this class can only receive transition callbacks but cannot block any transition. Maybe there's some way to just Mute the transition in runtime?

    Overview:
    upload_2023-3-16_15-14-16.png

    "MyStateMachine" inside:
    upload_2023-3-16_15-16-26.png
     
  2. Arficord

    Arficord

    Joined:
    Mar 31, 2019
    Posts:
    5
    Hello, any info, or suggestions?