API

Function AnimationParseFromFileAsync

  • Creates a new animation or an array of animations from a snippet saved in a remote file

    Parameters

    • name: Nullable<string>

      defines the name of the animation to create (can be null or empty to use the one from the json data)

    • url: string

      defines the url to load from

    Returns Promise<Animation | Animation[]>

    a promise that will resolve to the new animation or an array of animations