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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Why doesn’t animation transitions support logical OR conditions?

Discussion in 'Animation' started by eobet, Jun 24, 2018.

  1. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    176
    I see a lot of topics on other sites regarding this (but it’s difficult to search these forums for “or” because it detects “animatOR”), and the answers are seemingly always create extra triggers or states, and then the rebuttals are often “but that doesn’t work in my case” and then you don’t see any comebacks...

    This seems like really a basic flaw. Anyone have a general solution to this? For example, what happens when you have 8 directions and 4 buttons where you want at least a few of them to instantly override the others, regardless of which state you are in (but still perhaps want to use animation blending)?
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Can 'exit time' be based on a trigger/event/parameter?
     
  3. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    176
    I did not understand that.
     
  4. Goatogrammetry

    Goatogrammetry

    Joined:
    Apr 27, 2017
    Posts:
    196
    Yeah I noticed this right away. Its "AND" only. I think it has to do more with the UI -- Either all of the arguments are AND or else they're all OR. Mixing them means that order matters and you'd have to allow for (A or B) and C type groupings. I just made a boolean flag that does the calculation in code and pass it to the animator. Then you just need one condition without any ANDs or ORs.
     
    theANMATOR2b likes this.