The only effort in adapting the project for Vuforia is, instead of the HoloLens InputManager and GestureRecogizer, we are going to use standard Unity mouse events (which already map mobile screen touches). We wrote this code for the preceding ARKit version and can re-use it here.
- For PictureAction.cs, use exactly the same script we showed for ARKit.
- For ClickableObjects.cs, use exactly the same script we showed for ARKit.
- For ScaleTool.cs, use exactly the same script we showed for ARKit.
For the MoveTool, we must adapt it specifically for Vuforia.
To move our picture along the same plane as the image target, we need to define a large box collider for ImageTarget so that input events can be detected ...