Abstract
Readonly
Abstract
coreThe managed Live2D core model.
Flags this instance has been destroyed.
The final matrix to draw the model.
Readonly
heightCanvas height of the model, scaled by the height
of the model's layout.
The hit area definitions, keyed by their names.
Local transformation, calculated from the model's layout.
Abstract
motionReadonly
originalOriginal canvas height of the model. Note this doesn't represent the model's real size, as the model can overflow from its canvas.
Readonly
originalOriginal canvas width of the model. Note this doesn't represent the model's real size, as the model can overflow from its canvas.
Optional
physicsOptional
poseReadonly
Abstract
settingsFlags whether gl.UNPACK_FLIP_Y_WEBGL
should be enabled when binding the textures.
WebGL viewport when drawing the model. The format is [x, y, width, height]
.
Readonly
widthCanvas width of the model, scaled by the width
of the model's layout.
Static
prefixedOptional
context: anyAbstract
bindBinds a texture to the model. The index must be the same as that of this texture in the textures array.
Abstract
drawAbstract
getAbstract
getAbstract
getProtected
Abstract
getGets all the hit area definitions.
Normalized definitions.
Protected
Abstract
getGets the layout definition.
Normalized definition.
Protected
Abstract
getProtected
initOptional
fn: ListenerFnOptional
context: anyOptional
once: booleanAdd a listener for a given event.
Optional
context: anyAdd a one-time listener for a given event.
Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: string | symbolRemove the listeners of a given event.
Optional
fn: ListenerFnOptional
context: anyOptional
once: booleanProtected
setupProtected
setupAbstract
updateGenerated using TypeDoc
A wrapper that manages the states of a Live2D core model, and delegates all operations to it.
Emits
InternalModelEvents