Wikitude Unity Plugin
Public Member Functions | Public Attributes | Properties | List of all members
Wikitude.InstantTracker Class Reference

Instant Trackers provide markerless 3D tracking of a scene, allowing to place augmentations anywhere in the real world. An Instant Tracker can be in two states: Initializing, during which the tracking origin can be set; and Tracking, during which the scene is being tracker. More...

Inheritance diagram for Wikitude.InstantTracker:
Wikitude.TrackerBehaviour

Public Member Functions

void SetState (InstantTrackingState state)
 Request that the tracker change to a new state. When the tracker actually changes to that state, the OnStateChange will be called. More...
 

Public Attributes

OnStateChangedEvent OnStateChanged = new OnStateChangedEvent()
 Called whenever the internal state of the tracker is changed, as a result of calling SetState More...
 

Properties

float DeviceHeightAboveGround [set]
 Sets the estimated height at which the device is located above the ground. Affects how big the augmentations appear to be. More...
 

Detailed Description

Instant Trackers provide markerless 3D tracking of a scene, allowing to place augmentations anywhere in the real world. An Instant Tracker can be in two states: Initializing, during which the tracking origin can be set; and Tracking, during which the scene is being tracker.

When Instant Trackers are created at runtime, make sure that all the relevant properties are set before the Start method is called by Unity. At Start, the native tracker is created and all information needs to be available.

Member Function Documentation

void Wikitude.InstantTracker.SetState ( InstantTrackingState  state)
inline

Request that the tracker change to a new state. When the tracker actually changes to that state, the OnStateChange will be called.

Parameters
stateThe requested state to which the tracker should transition.

Member Data Documentation

OnStateChangedEvent Wikitude.InstantTracker.OnStateChanged = new OnStateChangedEvent()

Called whenever the internal state of the tracker is changed, as a result of calling SetState

Parameters
stateThe current state of the tracker.

Property Documentation

float Wikitude.InstantTracker.DeviceHeightAboveGround
set

Sets the estimated height at which the device is located above the ground. Affects how big the augmentations appear to be.