namespace UnityEngine.XR.OpenXR.Samples.InterceptFeature { /// /// Ensures that the intercept feature is enabled and updates the message on screen /// with the message received from the intercepted xrCreateSession call. /// public class InterceptMessageHandler : MonoBehaviour { public TextMesh textMesh; private void Start() { var feature = OpenXRSettings.Instance.GetFeature(); if (feature == null || !feature.enabled) textMesh.text = "InterceptCreateSession feature not enabled"; else { textMesh.text = feature.receivedMessage; textMesh.color = Color.white; } } } }