神岛 API 文档 - ArenaPro版
    Preparing search index...

    Interface GameAnimationPlaybackConfig

    定义游戏动画播放的配置接口。

    Defines the configuration interface for game animation playback.

    这个接口包含了动画播放的所有必要参数,用于控制动画的行为和特性。

    This interface contains all necessary parameters for animation playback, used to control animation behavior and characteristics.

    interface GameAnimationPlaybackConfig {
        delay: number;
        direction: GameAnimationDirection;
        duration: number;
        endDelay: number;
        iterations: number;
        iterationStart: number;
        startTick: number;
    }
    Index

    Properties

    delay: number

    动画开始前的延迟时间,单位为毫秒。

    The delay time before the animation starts, in milliseconds.

    direction: GameAnimationDirection

    动画播放的方向,可能的值包括正向、反向、交替等。

    The direction of animation playback, possible values include forward, reverse, alternate, etc.

    duration: number

    动画持续的总时间,单位为毫秒。

    The total duration of the animation, in milliseconds.

    endDelay: number

    动画结束后的延迟时间,单位为毫秒。

    The delay time after the animation ends, in milliseconds.

    iterations: number

    动画重复播放的次数,无限重复时可以设置为特定值(例如Infinity)。

    The number of times the animation repeats, can be set to a specific value (e.g., Infinity) for infinite repetition.

    iterationStart: number

    动画开始播放的位置,表示在动画周期中的一个比例。

    The starting position of animation playback, representing a proportion within the animation cycle.

    startTick: number

    动画开始的时间点,单位为毫秒。

    The starting time point of the animation, in milliseconds.