EditorUpdateMotionScheduler.cs 628 B

1234567891011121314151617
  1. using UnityEditor;
  2. namespace LitMotion.Editor
  3. {
  4. internal sealed class EditorUpdateMotionScheduler : IMotionScheduler
  5. {
  6. public double Time => EditorApplication.timeSinceStartup;
  7. public MotionHandle Schedule<TValue, TOptions, TAdapter>(ref MotionData<TValue, TOptions> data, ref MotionCallbackData callbackData)
  8. where TValue : unmanaged
  9. where TOptions : unmanaged, IMotionOptions
  10. where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
  11. {
  12. return EditorMotionDispatcher.Schedule<TValue, TOptions, TAdapter>(data, callbackData);
  13. }
  14. }
  15. }