documentation

VLDetectScreenChangeBehaviour Class Reference

Inherits VLWorkerReferenceBehaviour.

Data Structures

class  Overwrite
 

Public Member Functions

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 Public Member Functions

static VLDetectScreenChangeBehaviour FindInstance (GameObject go)
 
static ScreenOrientation GetOrientation (GameObject go)
 

Data Fields

Overwrite overwrite
 Settings for overwriting the screen orientation. More...
 

Events

static OrientationChangeAction OnOrientationChange
 
static SizeChangeAction OnSizeChange
 

Additional Inherited Members

- Protected Member Functions inherited from VLWorkerReferenceBehaviour
virtual bool InitWorkerReference ()
 Initializes the workerBehaviour and Worker member variables. More...
 
- Protected Attributes inherited from VLWorkerReferenceBehaviour
VLWorker worker
 
VLWorkerBehaviour workerBehaviour
 Reference to used VLWorkerBehaviour. More...
 

Member Function Documentation

◆ 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.

Field Documentation

◆ 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.