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

    Class GameMotionController<TargetType>

    游戏动作控制器类,用于管理和控制目标的动作播放。

    Game motion controller class, used for managing and controlling the motion playback of a target.

    Type Parameters

    • TargetType

      动作目标对象的类型。

    Index

    Properties

    loadByName: (
        config: string | GameMotionClipConfig | GameMotionConfig[],
    ) => GameMotionHandler<TargetType>

    Type declaration

    通过名称(可以是动作列表)创建动作处理器。

    Creates a motion handler by name (can be a list of motions).

    动作配置,可以是字符串、动作配置数组或单个动作剪辑配置。

    The motion configuration, which can be a string, an array of motion configurations, or a single motion clip configuration.

    返回一个 GameMotionHandler 实例,用于处理指定的动作。

    Returns a GameMotionHandler instance for processing the specified motion.

    pause: () => void

    暂停当前动作。

    Pauses the current motion.

    resume: () => void

    恢复暂停的动作。

    Resumes the paused motion.

    setDefaultMotionByName: (motionName?: string) => void

    通过名称设置默认动作。

    Sets the default motion by name.

    动作名称,可选参数。

    The name of the motion, optional parameter.