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 Animation curves in jobs

Discussion in 'DOTS Animation' started by Ondrej98, Feb 18, 2023.

  1. Ondrej98

    Ondrej98

    Joined:
    Oct 18, 2016
    Posts:
    20
    Hello,

    What is currently the best way to handle animation curve sampling inside a job?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,574
    I think Unity. Animation had curves evaluator, if I recall correctly. I don't know if this is the case in ECS 1.0.
     
  3. Rukhanka

    Rukhanka

    Joined:
    Dec 14, 2022
    Posts:
    177
    You can look at old Unity Animation package (com.unity.animation@0.9.0-preview.6). There is "Unity.Animation.Curves" folder with runtime sampling scripts and "Unity.Animation.Curves.Hybrid" with curves blob assets creation routines.

    Alternatively you can look at Rukhanka Animation System too.
     
  4. ThomasEgan

    ThomasEgan

    Joined:
    Dec 17, 2013
    Posts:
    20