API

Variable AnimationCreateFromSnippetAsyncConst

AnimationCreateFromSnippetAsync: (
    this: void | typeof Animation,
    snippetId: string,
) => Promise<Animation | Animation[]> = AnimationParseFromSnippetAsync

Creates an animation or an array of animations from a snippet saved by the Inspector

Type Declaration

    • (
          this: void | typeof Animation,
          snippetId: string,
      ): Promise<Animation | Animation[]>
    • Creates an animation or an array of animations from a snippet saved by the Inspector

      Parameters

      • this: void | typeof Animation
      • snippetId: string

        defines the snippet to load

      Returns Promise<Animation | Animation[]>

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

Please use AnimationParseFromSnippetAsync instead

defines the snippet to load

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