QRCodeScannerBaseBehaviour Class

Inherits: DeviceUserAbstractBehaviour

Description

QRCodeScannerBaseBehaviour is the component for QR code scan.

Use ARCameraBaseBehaviour.TextMessage to get qrcode when recognized.

QRCodeScannerBaseBehaviour should Bind to a DeviceAbstractBehaviour. This will be automatically done by the ARBuilder if you put QRCodeScannerBaseBehaviour 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

bool StartScan()
bool StopScan()

Overwritten MonoBahaviour Functions

protected virtual void OnDestroy()
protected virtual void Start()

bool StartScan()

Starts the scan. The scan will start only after the behaviour is Bind to a DeviceAbstractBehaviour. This will be automatically done by the ARBuilder if you put QRCodeScannerBaseBehaviour in the scene before everything start.

bool StopScan()

Stops the scan.