Use touch events instead of hand gestures

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.

  1. For PictureAction.cs, use exactly the same script we showed for ARKit.
  2. For ClickableObjects.cs, use exactly the same script we showed for ARKit.
  3. 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 ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.