接口 PlayAnimationOptions实验性

Contains additional options for how an animation is played.

interface PlayAnimationOptions {
    blendOutTime?: number;
    controller?: string;
    nextState?: string;
    players?: string[];
    stopExpression?: string;
}

属性

blendOutTime?: number

Amount of time to fade out after an animation stops.

controller?: string

Specifies a controller to use that has been defined on the entity.

nextState?: string

Specifies the state to transition to.

players?: string[]

A list of players the animation will be visible to.

stopExpression?: string

Specifies a Molang expression for when this animation should complete.