I am making a training software in AR using Hololens 2 with MRTK and Vuforia. Different training steps include different tooltips attached to images tracked by Vuforia.
Example: I have a marker called RobotTarget which has a Tooltip attached to it. The tracking mode is Tracked or Extended Tracked because it’s needed to remember it’s position. See the image below:
During the workflow, I change the visibility of the marker by SetActive(false)/SetActive(true). This works, the position is the same whenit was detected, but there is a problem of the blue plate being blank after setting the RobotTarget game object to active (so the text is not visible). The text becomes visible again when Vuforia detects it from close.
Blank label:
Any ideas how I can make it work so also the text is visible when setting the game object to active?
In the end I found the problem. It was related to the SetActive() function being used on the Vuforia Image Target game object (RobotTarget in the example). Instead, I only made active/inactive the children of the Image Target. This way the text appears as expected.
So, in short: don’t deactivate/activate the Vuforia Image Target game object, but only its children.