documentation

StartTrackingWithCameraSelectionBehaviour Class Reference

This behaviour allows you to select one of the connected cameras (if more than one camera is connected) before loading the tracking configuration. More...

Inherits VLWorkerReferenceBehaviour.

Public Member Functions

void StartTracking (string filename)
 Display the camera selection screen and starts the tracking using a vl-file after selecting a camera. More...
 

Data Fields

int windowID = 0
 A unique ID used for the selection window. More...
 
bool showOnMobileDevices = false
 
- Data Fields inherited from VLWorkerReferenceBehaviour
VLWorkerBehaviour workerBehaviour
 Reference to used VLWorkerBehaviour. More...
 

Additional Inherited Members

- Protected Member Functions inherited from VLWorkerReferenceBehaviour
bool InitWorkerReference ()
 Initializes the workerBehaviour and worker member variables. More...
 
- Protected Attributes inherited from VLWorkerReferenceBehaviour
VLWorker worker
 

Detailed Description

This behaviour allows you to select one of the connected cameras (if more than one camera is connected) before loading the tracking configuration.

This is just an example to show you how a camera selection could be implemented. Please feel free to write you own camera selection.

NOTICE: The camera selection will only work correctly, if the vl-file doesn't specify the "useImageSource" attribute.

Member Function Documentation

◆ StartTracking()

void StartTrackingWithCameraSelectionBehaviour.StartTracking ( string  filename)
inline

Display the camera selection screen and starts the tracking using a vl-file after selecting a camera.

NOTICE: The camera selection will only work correctly, if the vl-file doesn't specify the "useImageSource" attribute.

Field Documentation

◆ showOnMobileDevices

bool StartTrackingWithCameraSelectionBehaviour.showOnMobileDevices = false

◆ windowID

int StartTrackingWithCameraSelectionBehaviour.windowID = 0

A unique ID used for the selection window.

Set this to a unique value, if you also use the GUI.Window or GUILayout.Window functions with the default ID.