Closed caewok closed 7 months ago
Need to modify the hitArea. Something like:
t = canvas.templates.placeables[0] t.off("pointerenter").on("pointerenter", event => console.log("Entered!")) t.eventMode = "static" t.hitArea = t.shape; // Need to make sure this is a valid shape at the actual template location.
Note: Hit area is relative to the anchor. See https://pixijs.com/examples/events/custom-hitarea
Added in v0.7.3.
Need to modify the hitArea. Something like:
Note: Hit area is relative to the anchor. See https://pixijs.com/examples/events/custom-hitarea