This function changes the orientations that are allowed for the game. You can enable or disable landscape and portrait orientations separately.
Calling this function will disable the flipped versions of both orientations, which are found in the Android / iOS Game Options.
os_set_orientation_lock(landscape_enable, portrait_enable);
Argument | Type | Description |
---|---|---|
landscape_enable | Boolean | Set to true or false to enable or disable landscape orientations. |
portrait_enable | Boolean | Set to true or false to enable or disable portrait orientations. |
N/A
os_set_orientation_lock(true, true);
This enables both landscape and portrait orientations.