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¶
Overwritten MonoBahaviour Functions¶
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.