Esposter
    Preparing search index...

    Function useAnimations

    • Parameters

      • createConfigurations: (scene: SceneWithPlugins) => Animation[]
      • Optionalimmediate: true

      Returns Ref<
          {
              defaultTextureKey?: string;
              delay?: number;
              duration?: number;
              frameRate?: number;
              frames?: | string
              | {
                  duration?: number;
                  frame?: string
                  | number;
                  key?: string;
                  visible?: boolean;
              }[];
              hideOnComplete?: boolean;
              key?: string;
              randomFrame?: boolean;
              repeat?: number;
              repeatDelay?: number;
              showBeforeDelay?: boolean;
              showOnStart?: boolean;
              skipMissedFrames?: boolean;
              sortFrames?: boolean;
              yoyo?: boolean;
          }[],
          | Animation[]
          | {
              defaultTextureKey?: string;
              delay?: number;
              duration?: number;
              frameRate?: number;
              frames?: | string
              | {
                  duration?: number;
                  frame?: string
                  | number;
                  key?: string;
                  visible?: boolean;
              }[];
              hideOnComplete?: boolean;
              key?: string;
              randomFrame?: boolean;
              repeat?: number;
              repeatDelay?: number;
              showBeforeDelay?: boolean;
              showOnStart?: boolean;
              skipMissedFrames?: boolean;
              sortFrames?: boolean;
              yoyo?: boolean;
          }[],
      >