Search Unity

How to integrate animator with dots?

Discussion in 'Entity Component System' started by abhi3188, Feb 21, 2020.

  1. abhi3188

    abhi3188

    Joined:
    Dec 13, 2015
    Posts:
    31
    I've seen some old youtube videos that show how using a hybrid ecs approach allows you to use the animator component. Those videos also showed an animator system attached to the entity once a gameobject was converted.

    However when I try to convert a gameobject with an animator component on it to an entity now, it loses the animator and I am unable to trigger any animations. I am calling convert & destroy since I don't want two copies in my game.

    Has unity removed that support? How best can we include animations in a hybrid ecs approach?
     
    xNex likes this.
  2. nicolasgramlich

    nicolasgramlich

    Joined:
    Sep 21, 2017
    Posts:
    231
    Check out this project: https://github.com/Unity-Technologies/Unity.Animation.Samples
    And this thread: https://forum.unity.com/threads/animation-documentation.818892/#post-5472981

    I've outlines some of my experience here: https://github.com/Unity-Technologies/Unity.Animation.Samples/issues/1

    Disclaimer: First of all it's a work in progress and (like most thing ECS so far) more work than it used to be until more "convenience stuff" is put in place.

    That being sad the performance is outstanding and it'll be worth the wait/effort :)
     
    ratuspro, B1QQ and eatbuckshot like this.