I have a scene where everything looks perfect on my phone in landscape resolution but in portrait it isn’t fitting in the screen. These are objects and not UI entities. Is there a way to detect when resolution has changed, or when a phone goes into portrait or landscape, and make an adjustment to the camera?
Hi @aperez440,
You can subscribe to the resizecanvas event to monitor when the resolution has changed, and from there check width > height to check if a change in orientation has happened:
https://developer.playcanvas.com/en/api/pc.GraphicsDevice.html#event:resizecanvas
1 Like