documentation

Visometry.VisionLib.SDK.Core.ScreenOrientationObserver Class Reference

Inherits Visometry.VisionLib.SDK.Core.TrackingManagerReference.

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 ScreenOrientationObserver 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 Visometry.VisionLib.SDK.Core.TrackingManagerReference
virtual bool InitWorkerReference ()
 Initializes the trackingManager and Worker member variables. More...
 
virtual void ResetReference ()
 
- Properties inherited from Visometry.VisionLib.SDK.Core.TrackingManagerReference
TrackingManager trackingManager [get]
 Reference to used TrackingManager. More...
 
Worker worker [get]
 

Member Function Documentation

◆ GetOrientation()

ScreenOrientation Visometry.VisionLib.SDK.Core.ScreenOrientationObserver.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 Visometry.VisionLib.SDK.Core.ScreenOrientationObserver.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.