LogoPixi’VN
coreClasses

Class: CubismLegacyParallelMotionManager

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5055

Extends

  • ParallelMotionManager<Live2DMotion, Motion>

Constructors

Constructor

> new CubismLegacyParallelMotionManager(parent): CubismLegacyParallelMotionManager

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5057

Parameters

parent

CubismLegacyInternalModel

Returns

CubismLegacyParallelMotionManager

Overrides

ParallelMotionManager<Live2DMotion, Cubism2Spec.Motion>.constructor

Properties

destroyed

> destroyed: boolean

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:776

Flags the instances has been destroyed.

Inherited from

CubismParallelMotionManager.destroyed


manager

> manager: MotionManager

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:760

Inherited from

CubismParallelMotionManager.manager


parent

> readonly parent: InternalModel

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:777

Inherited from

CubismParallelMotionManager.parent


playing

> playing: boolean

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:772

Flags there's a motion playing.

Inherited from

CubismParallelMotionManager.playing


queueManager

> readonly queueManager: MotionQueueManager

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5056


settings

> readonly settings: ModelSettings

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:764

The ModelSettings reference.

Inherited from

ParallelMotionManager.settings


state

> state: MotionState

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:768

Maintains the state of this MotionManager.

Inherited from

ParallelMotionManager.state


tag

> tag: string

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:759

Tag for logging.

Inherited from

CubismParallelMotionManager.tag


prefixed

> static prefixed: string | boolean

Defined in: node_modules/eventemitter3/index.d.ts:9

Inherited from

ParallelMotionManager.prefixed

Methods

_startMotion()

> protected _startMotion(motion, onFinish?, ignoreParamIds?, _loop?): number

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5060

Starts the Motion.

Parameters

motion

Live2DMotion

onFinish?

(motion) => void

ignoreParamIds?

string[]

_loop?

boolean

Returns

number

Overrides

ParallelMotionManager._startMotion


_stopAllMotions()

> protected _stopAllMotions(): void

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5061

Stops all playing motions.

Returns

void

Overrides

ParallelMotionManager._stopAllMotions


addListener()

> addListener<T>(event, fn, context?): this

Defined in: node_modules/eventemitter3/index.d.ts:45

Type Parameters

T

T extends string | symbol

Parameters

event

T

fn

(...args) => void

context?

any

Returns

this

Inherited from

ParallelMotionManager.addListener


destroy()

> destroy(): void

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5063

Destroys the instance.

Returns

void

Emits

MotionManagerEvents.destroy

Overrides

ParallelMotionManager.destroy


emit()

> emit<T>(event, ...args): boolean

Defined in: node_modules/eventemitter3/index.d.ts:32

Calls each of the listeners registered for a given event.

Type Parameters

T

T extends string | symbol

Parameters

event

T

args

...any[]

Returns

boolean

Inherited from

ParallelMotionManager.emit


eventNames()

> eventNames(): (string | symbol)[]

Defined in: node_modules/eventemitter3/index.d.ts:15

Return an array listing the events for which the emitter has registered listeners.

Returns

(string | symbol)[]

Inherited from

ParallelMotionManager.eventNames


getMotionName()

> protected getMotionName(definition): string

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5059

Retrieves the motion's name by its definition.

Parameters

definition

Motion

Returns

string

The motion's name.

Overrides

ParallelMotionManager.getMotionName


isFinished()

> isFinished(): boolean

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5058

Checks if the motion playback has finished.

Returns

boolean

Overrides

ParallelMotionManager.isFinished


listenerCount()

> listenerCount(event): number

Defined in: node_modules/eventemitter3/index.d.ts:27

Return the number of listeners listening to a given event.

Parameters

event

string | symbol

Returns

number

Inherited from

ParallelMotionManager.listenerCount


listeners()

> listeners<T>(event): (...args) => void[]

Defined in: node_modules/eventemitter3/index.d.ts:20

Return the listeners registered for a given event.

Type Parameters

T

T extends string | symbol

Parameters

event

T

Returns

(...args) => void[]

Inherited from

ParallelMotionManager.listeners


off()

> off<T>(event, fn?, context?, once?): this

Defined in: node_modules/eventemitter3/index.d.ts:69

Type Parameters

T

T extends string | symbol

Parameters

event

T

fn?

(...args) => void

context?

any

once?

boolean

Returns

this

Inherited from

ParallelMotionManager.off


on()

> on<T>(event, fn, context?): this

Defined in: node_modules/eventemitter3/index.d.ts:40

Add a listener for a given event.

Type Parameters

T

T extends string | symbol

Parameters

event

T

fn

(...args) => void

context?

any

Returns

this

Inherited from

ParallelMotionManager.on


once()

> once<T>(event, fn, context?): this

Defined in: node_modules/eventemitter3/index.d.ts:54

Add a one-time listener for a given event.

Type Parameters

T

T extends string | symbol

Parameters

event

T

fn

(...args) => void

context?

any

Returns

this

Inherited from

ParallelMotionManager.once


playMotionLastFrame()

> playMotionLastFrame(group, index): Promise<boolean>

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5064

Parameters

group

string

index

number

Returns

Promise<boolean>

Overrides

ParallelMotionManager.playMotionLastFrame


removeAllListeners()

> removeAllListeners(event?): this

Defined in: node_modules/eventemitter3/index.d.ts:79

Remove all listeners, or those of the specified event.

Parameters

event?

string | symbol

Returns

this

Inherited from

ParallelMotionManager.removeAllListeners


removeListener()

> removeListener<T>(event, fn?, context?, once?): this

Defined in: node_modules/eventemitter3/index.d.ts:63

Remove the listeners of a given event.

Type Parameters

T

T extends string | symbol

Parameters

event

T

fn?

(...args) => void

context?

any

once?

boolean

Returns

this

Inherited from

ParallelMotionManager.removeListener


startMotion()

> startMotion(group, index, priority?, options?): Promise<boolean>

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:788

Starts a motion as given priority.

Parameters

group

string

The motion group.

index

number

Index in the motion group.

priority?

MotionPriority

The priority to be applied. default: 2 (NORMAL)

options?

string[] | ParallelMotionStartOptions

Returns

Promise<boolean>

Promise that resolves with true if the motion is successfully started, with false otherwise.

Inherited from

ParallelMotionManager.startMotion


startRandomMotion()

> startRandomMotion(group, priority?, loop?): Promise<boolean>

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:796

Starts a random Motion as given priority.

Parameters

group

string

The motion group.

priority?

MotionPriority

The priority to be applied. (default: 1 IDLE)

loop?

ParallelMotionStartRandomOptions

Whether the motion should loop. Overrides Cubism 3/4/5 motion JSON loop metadata when specified.

Returns

Promise<boolean>

Promise that resolves with true if the motion is successfully started, with false otherwise.

Inherited from

ParallelMotionManager.startRandomMotion


stopAllMotions()

> stopAllMotions(): void

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:800

Stops all playing motions as well as the sound.

Returns

void

Inherited from

ParallelMotionManager.stopAllMotions


update()

> update(model, now): boolean

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:807

Updates parameters of the core model.

Parameters

model

object

The core model.

now

number

Current time in milliseconds.

Returns

boolean

True if the parameters have been actually updated.

Inherited from

ParallelMotionManager.update


updateParameters()

> protected updateParameters(model, _now): boolean

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5062

Updates parameters of the core model.

Parameters

model

Live2DModelWebGL

The core model.

_now

number

Returns

boolean

True if the parameters have been actually updated.

Overrides

ParallelMotionManager.updateParameters

On this page