Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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