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. Dismiss Notice

Question Can't get State Machine to work with my animation

Discussion in 'DOTS Animation' started by dv1ous, Jan 11, 2022.

  1. dv1ous

    dv1ous

    Joined:
    Jan 11, 2022
    Posts:
    1
    Hello,
    I'm trying to create a simple jump animation for my character with help of the State Machine i found in Assets->Create->DOTS->Animation->State Machine.

    I tried to explore all the documentation i can in the different posts on the forum and in the Animation Sample on Github but i'm still stuck with some errors in the Editor mode and a simple crash when i try to go in Play mode.

    Here is what i come up with :

    The State Machine in Animation Graph :
    state_machine_graph.PNG

    When i click on the transition arrow :
    transition.PNG

    When i click on the jump motion :
    in_enter_motion.PNG

    My Player Components in the Inspector ( GameObject in a Subscene ) :
    Player.png

    My errors (in Play mode):
    Errors.PNG

    If someone make the State Machine Works or have some tips to help me understand my problems and if possible, the path to resolve them, it would be much appreciated ! :)
    Thanks,
     
    DevViktoria likes this.
  2. rostspik

    rostspik

    Joined:
    Jun 16, 2020
    Posts:
    1
    I did not manage to get it to work either, I got a different error if I added a Rig Authoring as well as a rig component but still no luck. Get a lot of errors about OnEnable. I suspect that the gui for the graphs might be broken? I tried five different unity versions but think I am giving up on the gui side of things and will have to dive into setting up the things in code instead. I did get the bones to show up in the rig component in 2020.2 so it showed most promise of the ones I tried so far...