-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
Description
Version
- Phaser Version: 3.60.0
- Operating system: Windows 10
Description
It seems that "plane" gameObjects do not support the useHandCursor
setting when calling setInteractive()
. The interactivity works, but the cursor stays the same. The object still supports pointerover
and pointerout
events, so it can be implemented manually.
Example Test Code
const plane = this.add.plane(100,100,"myTexture");
plane.setInteractive({useHandCursor: true}); // this works, but doesn't set the cursor on pointerover
// My hacky implementation of useHandCursor follows:
plane.on("pointerover",() => {
this.game.canvas.style.cursor = "pointer";
});
plane.on("pointerout",() => {
this.game.canvas.style.cursor = "default";
});