Abstract expression manager.

Emits

ExpressionManagerEvents

Hierarchy

Constructors

Properties

currentExpression: Live2DExpression

Current Expression. This will not be overwritten by defaultExpression.

defaultExpression: Live2DExpression

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 | Live2DExpression)[] = []

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: MotionQueueManager = ...
reserveExpressionIndex: number = -1

The pending Expression.

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