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 Is there a framework/package that's equivalent to the classic Animation component?

Discussion in 'Entity Component System' started by davenirline, Aug 5, 2023.

  1. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    943
    I just want to play animation clips. I don't need the whole Mechanim and state machine thing. Is there already a DOTS equivalent for it?
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,983
    Yup. While the latest Latios Framework alpha does have a Mecanim mode, if you don't specify an AnimatorController or disable Mecanim in the bootstrap, you can then use the lower-level APIs to raw-control animation. The alpha also supports Unity Transforms with LATIOS_TRANSFORMS_UNITY scripting define (with a little worse performance and some advanced features disabled).

    The alpha branch: https://github.com/Dreaming381/Latios-Framework/tree/prerelease/0.8.0
    Docs on manual animation control using an entity per bone: https://github.com/Dreaming381/Lati...ion and Rendering/Getting Started - Part 3.md

    I know there's a lot in this framework that looks scary, but unless you need things to magically work with NetCode (on the roadmap), the alpha version with that scripting define can slot into just about any ECS project. It is a lot better of a situation than it was just a few months ago.

    If you have any questions, don't hesitate to reach out to me!
     
    davenirline and Anthiese like this.
  3. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    943
    I'll check it out. Thanks!