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 March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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?