You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to write a code to get clicked events from Hololens 1 clicker paired with hololens 2. Here is a code that is written with MRTK1/Holotoolkit and works on hololens 2:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using HoloToolkit.Unity.InputModule;
public class CalibrateFOV : MonoBehaviour, IInputClickHandler
{
private Text info;
// Start is called before the first frame update
void Start()
{
info = GameObject.Find("InfoText").GetComponent<Text>();
info.text = "Please adjust the headset to make sure you can see both white bars. If you see them, press the clicker to enter test.";
InputManager.Instance.PushFallbackInputHandler(gameObject);
}
public virtual void OnInputClicked(InputClickedEventData eventData)
{
info.text = "Resume the process";
Destroy(this.gameObject);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to write a code to get clicked events from Hololens 1 clicker paired with hololens 2. Here is a code that is written with MRTK1/Holotoolkit and works on hololens 2:
How Can I do this with MRTK3?
Beta Was this translation helpful? Give feedback.
All reactions