Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ManipulationHandlerManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Microsoft.MixedReality.Toolkit.UI;
public class ManipulationHandlerManager : MonoBehaviour
{
public AppBar appBar;
private AppBar.AppBarStateEnum state;
// Update is called once per frame
void Update()
{
state = appBar.GetComponent<AppBar>().State;
// Debug.Log(state);
if (state == AppBar.AppBarStateEnum.Manipulation){
this.GetComponent<ManipulationHandler>().enabled = false;
} else {
this.GetComponent<ManipulationHandler>().enabled = true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment