Mixin: interactiveTarget

PIXI.interaction. interactiveTarget

Default property values of interactive objects
Used by PIXI.interaction.InteractionManager to automatically give all DisplayObjects these properties

Example

function MyObject() {}

     Object.assign(
         core.DisplayObject.prototype,
         PIXI.interaction.interactiveTarget
     );

Members

buttonModeboolean

If enabled, the mouse cursor use the pointer behavior when hovered over the displayObject if it is interactive
Setting this changes the 'cursor' property to 'pointer'.

defaultCursornumber

Deprecated
  • since 4.3.0
    See:
    • PIXI.interaction.interactiveTarget#cursor