Force “landscape” orientation mode The 3d button cannot be clicked

The 3d button cannot be clicked

  • You can click

Are you rotating the canvas DOM element? If so, the input system in PlayCanvas for the UI Elements doesn’t support that.

I’m honestly not sure what you can do to support that outside of patching the engine.

Do you have to rotate the canvas?

The issue has been resolved! thanks!
Instead of using the 3d ui system, use Raycast to execute events.

1 Like

Oh, I’m actually surprised that works!

Do you do anything custom with the raycasts?

My code

Please update the official screenToWorld API

Ah, you transform the screen x and y before doing the raycast. Yep, that makes sense