// Use this for initialization void Start() { material = GetComponent <Renderer>().material; initColor = material.color; if (theComponent == null) { theComponent = GetComponent <MREComponent>(); } if (theComponent == null) { Debug.LogError("unable to find a Mixed Reality Extension component"); return; } isCurrentlyInFocus = false; #if UNITY_WSA gr = new GestureRecognizer(); gr.SetRecognizableGestures(GestureSettings.Tap); gr.Tapped += Gr_Tapped; gr.HoldStarted += Gr_HoldStarted; gr.StartCapturingGestures(); #endif }
private void App_OnAppStarted(MREComponent app) { app.OnAppStarted -= App_OnAppStarted; if (!app.AutoJoin) { app.UserJoin(); } }
private void App_OnAppStarted(MREComponent app) { app.OnAppStarted -= App_OnAppStarted; if (!app.AutoJoin) { app.UserJoin(); } StartCoroutine(SetCurrentAsActive()); }
private void MREComponent_OnAppShutdown(MREComponent app) { appRunning = false; userJoined = false; }
private void MREComponent_OnAppStarted(MREComponent app) { appRunning = true; ProcessJoin(); }
public IUserInfo GetUserInfo(IMixedRealityExtensionApp app, Guid userId) { return(MREComponent.GetUserInfo(userId)); }