I want to create a Unity app for Hololens 2 which will use MRTK 3 and Vuforia for Image Targeting. I tried to attach the Vuforia Behaviour and DefaultInitializationErrorHandler scripts to the main camera of the MRTK XR Rig (also configured the camera and other stuff as in this link) and then added an Image Target.
When I try to recognize the image while in play mode or deployed on Hololens I have the next behaviour:
My image is recognized well and my gameobject which must appear above the image is displaying just for a small amount of time and then it is going somewhere very far and I cannot see where it is. What can be the problem? In the logs I see that my image is targeted normally.
My situation is like in this post on the stackoverflow.
I tried to make the default recommended setup for mrtk and vuforia and also tried to add Vuforia AR Camera as the setup for other devices which are not using MRTK
In my case the solution was that in the Main Camera of the MRTK XR Rig is a component called "Tracked Pose Driver" which has a parameter named "Update Type" and its value must be changed from the default "Update And before Render" to just "Update" as in this screenshot.
Edit: Since Unity is recommending that the value for the "Update Type" parameter to be "Update And before Render" this solution is not the best even if it is getting to the desired result. With the help of @ptc-epassaro figured out that the best solution is just to disable the MRTK Input Simulator from Scene while testing Vuforia functionalities.