Hello, Welcome to Microsoft Q&A,
For HoloLens 2, our current recommendation is to use Unity 2021.3 LTS and Visual Studio 2022 for development. For more information, please refer to Choosing a Unity version and XR plugin - Mixed Reality | Microsoft Learn and Install the tools - Mixed Reality | Microsoft Learn.
Regarding how to implement QR Code on HoloLens 2, you can refer to QR code tracking - Mixed Reality | Microsoft Learn and microsoft/MixedReality-QRCode-Sample at OpenXR (github.com). This sample also shows you how to generate some holograms at the location of the QR Code.
Regarding the number that increases over time, I think you could try implementing a timer function in Unity's lifecycle function Update or FixedUpdate. For more details, it is recommended that you seek support from the Unity forum.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.