DeviceUserAbstractBehaviour Class¶
Description¶
DeviceUserAbstractBehaviour is the abstract class for all device users, e.g. trackers.
A DeviceUserAbstractBehaviour should Bind to a DeviceAbstractBehaviour to make everything work. This will be automatically done by the ARBuilder if you put a DeviceUserAbstractBehaviour in the scene before everything start. If you add the component later in the scene, make sure to Bind it to a DeviceAbstractBehaviour, for example, Bind to a CameraDeviceBaseBehaviour.
Public Functions¶
void Bind(DeviceAbstractBehaviour behaviour)
Public Events¶
event Action<DeviceUserAbstractBehaviour, DeviceAbstractBehaviour> WorkStart
event Action<DeviceUserAbstractBehaviour> WorkStop
void Bind(DeviceAbstractBehaviour behaviour)¶
Bind a device. A device user can only work when a valid device is bound.
event Action<DeviceUserAbstractBehaviour, DeviceAbstractBehaviour> WorkStart¶
The work start event, e.g tracker start to run.
event Action<DeviceUserAbstractBehaviour> WorkStop¶
The work stop event.