How to make UI button work on HoloLens?


Hi, I’m new to Unity, I have a question, the button setting I used above only works in Unity, but not in Hololens. I think I need to use a script like this for Hololens, but don’t know how to add that GameObject (which has the code to open an url). Thanks!

using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using HoloToolkit.Unity.InputModule;

public class Tap : MonoBehaviour, IInputClickHandler
    public void OnInputClicked(InputClickedEventData eventData)

Do you have download and install the MixedRealityToolkit from microsoft ? :slight_smile:

It really help for Hololens development. It provide you multiple class to handle inputs, camera, SpatialMapping etc…
Try it, it will probably help you a lot :slight_smile: