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


    Jan 11, 2022
    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 :

    When i click on the transition arrow :

    When i click on the jump motion :

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

    My errors (in Play mode):

    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 ! :)
    DevViktoria likes this.
  2. rostspik


    Jun 16, 2020
    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...