API

Function OptimizeAnimations

  • This is a destructive optimization that merges all animatables into the first one. That animatable will also host all the runtime animations. We expect that all the animatables are on the same timeframe (same start, end, loop, etc..)

    Parameters

    • scene: Scene

      defines the scene to optimize

    • options: Partial<AnimationOptimization> = {}

      defines the optimization options

    Returns void