0 votes

OS.screenorientation return the same value all the time
I know that I can use the changing width to detect the change of orientation (OS.window
size) I'm wondering tho if there is something easier.

in Engine by (107 points)

1 Answer

0 votes

I'd expect OS.screen_orientation to be the correct way to detect screen orientation. And, though I haven't tested it, I'd expect its return value to change appropriately when the device orientation changes. Are you sure that's not the case? If so, what device are you working with?

by (10,894 points)

Thank you for the response :)
But it is a know issue, Calinou said it will be fix in 3.2.4 beta 2

Ah, good to know. Thanks for the follow-up.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.