Inherits VLWorkerReferenceBehaviour.
|
| ScreenOrientation | GetOrientation () |
| | Returns the current screen orientation considering the overwrite setting. More...
|
| |
|
delegate void | OrientationChangeAction (ScreenOrientation orientation) |
| |
|
delegate void | SizeChangeAction (int width, int height) |
| |
|
|
static OrientationChangeAction | OnOrientationChange |
| |
|
static SizeChangeAction | OnSizeChange |
| |
◆ GetOrientation()
| ScreenOrientation VLDetectScreenChangeBehaviour.GetOrientation |
( |
| ) |
|
|
inline |
Returns the current screen orientation considering the overwrite setting.
- Returns
- Screen.orientation or overwrite.orientation depending on the overwrite.active value.
◆ overwrite
| Overwrite VLDetectScreenChangeBehaviour.overwrite |
Settings for overwriting the screen orientation.
On systems without a screen orientation sensor, Unity will always report a portrait screen orientation. By activating the orientation overwrite, it's possible to simulate a different screen orientation. This allows the proper playback of iOS and Android image sequences captured in landscape mode with an "imageRecorder" configuration.