The interaction control split from Live2DModel class for code clarity. This mixin should only be used on the Live2DModel.

Hierarchy

Constructors

Properties

interactionManager?: InteractionManager

Local reference used to clean up the event listeners when destroying the model.

Accessors

  • get autoInteract(): boolean
  • Enables automatic interaction. Only takes effect if Pixi's interaction feature has been enabled (by registering the PIXI.InteractionManager into PIXI.Renderer).

    Returns boolean

  • set autoInteract(autoInteract: boolean): void
  • Parameters

    • autoInteract: boolean

    Returns void

Methods

  • Registers interaction by subscribing to the PIXI.InteractionManager.

    Parameters

    • this: Live2DModel<any>
    • Optional manager: InteractionManager

    Returns void

Generated using TypeDoc