How to implement a time-dependent virtual number overlay on a QR code scanned by Hololens 2 using Unity 2022.3.14.f1 and Visual Studio 2019?

Pei Yunqiang 5 Reputation points
2023-12-12T01:58:11.26+00:00

I’m trying to create an application using Unity 2022.3.14.f1 and Visual Studio 2019 for the Hololens 2. The goal is to scan a QR code and render a virtual number on top of it. This number should increment over time. I’m not sure how to approach this problem. Any guidance on how to achieve this would be greatly appreciated. Specifically, I’m looking for advice on how to scan the QR code, render the virtual number, and update it over time. Thank you in advance for your help.

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,091 Reputation points Microsoft Vendor
    2023-12-12T06:15:21.4566667+00:00

    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.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.