C API Unity API
Unity API Reference
ObserverBehaviour Class Referenceabstract

The base class of all observer behaviour components. Provides access to base functionality and information of the observer More...

Inheritance diagram for ObserverBehaviour:
VuforiaMonoBehaviour AnchorBehaviour BarcodeBehaviour CloudRecoBehaviour DataSetTrackableBehaviour DevicePoseBehaviour VirtualButtonBehaviour AreaTargetBehaviour ScalableDataSetTrackableBehaviour CylinderTargetBehaviour ImageTargetBehaviour ModelTargetBehaviour MultiTargetBehaviour VuMarkBehaviour

Public Attributes

int ID => mObserver?.Id
 The runtime Id of the Observer More...
 
string TargetName => mTrackableName
 Name of the target of the Observer More...
 

Properties

TargetStatus TargetStatus [get]
 Current status information of the target More...
 

Events

Action< ObserverBehaviourOnBehaviourDestroyed
 Triggered when this behaviour is destroyed. Can be used for script cleanup More...
 
Action< ObserverBehaviour, TargetStatusOnTargetStatusChanged
 Triggered when the TargetStatus changes More...
 

Detailed Description

The base class of all observer behaviour components. Provides access to base functionality and information of the observer

Member Data Documentation

◆ ID

int ID => mObserver?.Id

The runtime Id of the Observer

◆ TargetName

string TargetName => mTrackableName

Name of the target of the Observer

Property Documentation

◆ TargetStatus

Current status information of the target

Event Documentation

◆ OnBehaviourDestroyed

Action<ObserverBehaviour> OnBehaviourDestroyed

Triggered when this behaviour is destroyed. Can be used for script cleanup

◆ OnTargetStatusChanged

Action<ObserverBehaviour, TargetStatus> OnTargetStatusChanged

Triggered when the TargetStatus changes