CREATE YOUR WORLD
User Interface
Changing Screen Orientation at runtime
2min
Please set the Screen Orientation to be displayed by default in World Settings.
- Orientation : Choose the orientation of the screen.
- Vertical
- Horizontal
The following is an example code to change the orientation of the screen at runtime.
Only two screen orientations are supported: Portrait and Landscape.
👍 Tip
- Default UI (Home button, Chat button) and V-pad automatically support landscape-portrait switching when changing Screen Orientation.
- If you provide other custom UI in your content, you need to respond to the orientation.
Updated 10 Oct 2024
Did this page help you?