Hi!
I’m using playcanvas engine and I don’t know how to disable mouse pointer events over canvas.
Here’s the situation. I’m using orbit control script in canvas
The html I made covers the canvas a little like follow image.
So I don’t want to use the canvas mouse depending on the situation.
I added a mouse like following code
const app = new pc.Application(canvas, {
mouse: new pc.Mouse(canvas),
keyboard: new pc.Keyboard(window),
});
Is there any code that works like this?
app.mouse.disabled = false; //pseudocode