documentation

VLHoloLensTrackerBehaviour Class Reference

Manages the model-based initialization of the HoloLens tracking. More...

Inherits VLWorkerReferenceBehaviour.

Data Fields

GameObject holoLensCamera
 The GameObject representing the HoloLens camera. More...
 
GameObject content
 GameObject with the AR content attached to it. More...
 
float smoothTime = 1.0f / 10.0f
 

Additional Inherited Members

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

Detailed Description

Manages the model-based initialization of the HoloLens tracking.

Right now this behaviour only works correctly, if there also is an enabled VLHoloLensInitCameraBehaviour somewhere in the scene.

Field Documentation

◆ content

GameObject VLHoloLensTrackerBehaviour.content

GameObject with the AR content attached to it.

Any existing transformation of the content GameObject will get overwritten. If you need to transform the content, then please add a child GameObject and apply the transformation to it instead.

◆ holoLensCamera

GameObject VLHoloLensTrackerBehaviour.holoLensCamera

The GameObject representing the HoloLens camera.

If this is not defined, then the VLHoloLensTrackerBehaviour tries to find the camera automatically. It will first try to find a camera component on the current GameObject. Then it will use the main camera. If this also fails, it will use any camera available in the current scene.

◆ smoothTime

float VLHoloLensTrackerBehaviour.smoothTime = 1.0f / 10.0f