Abstract expression manager.

Emits

ExpressionManagerEvents

Hierarchy

Constructors

Properties

currentExpression: CubismExpressionMotion

Current Expression. This will not be overwritten by defaultExpression.

defaultExpression: CubismExpressionMotion

An empty Expression to reset all the expression parameters.

definitions: Expression[]

Expression definitions copied from ModelSettings.

destroyed: boolean = false

Flags the instance has been destroyed.

expressions: (undefined | null | CubismExpressionMotion)[] = []

The Expressions. The structure is the same as definitions, initially there's only an empty array, which means all expressions will be undefined. When an Expression has been loaded, it'll fill the place in which it should be; when it fails to load, the place will be filled with null.

queueManager: CubismMotionQueueManager = ...
reserveExpressionIndex: number = -1

The pending Expression.

settings: ModelSettings

The ModelSettings reference.

tag: string

Tag for logging.

prefixed: string | boolean

Methods

  • Sets an Expression.

    Returns

    Promise that resolves with true if succeeded, with false otherwise.

    Parameters

    • index: string | number

      Either the index, or the name of the expression.

    Returns Promise<boolean>

Generated using TypeDoc