Optional
options: InternalModelOptionsThe managed Live2D core model.
Flags this instance has been destroyed.
If true, the face culling will always be disabled when drawing the model, regardless of the model's internal flags.
Number of the drawables in this model.
The final matrix to draw the model.
Optional
eyeReadonly
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.
Readonly
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
poseFlags 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: anyBinds a texture to the model. The index must be the same as that of this texture in the textures array.
Protected
getGets all the hit area definitions.
Normalized definitions.
Protected
getGets the layout definition.
Normalized definition.
Protected
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
setupGenerated using TypeDoc
A wrapper that manages the states of a Live2D core model, and delegates all operations to it.
Emits
InternalModelEvents