public void OnXRCapabilities(WebXRDisplayCapabilities capabilities)
        {
#if !UNITY_EDITOR && UNITY_WEBGL
            this.capabilities = capabilities;
#endif

            if (OnXRCapabilitiesUpdate != null)
            {
                OnXRCapabilitiesUpdate(capabilities);
            }
        }
        public void OnXRCapabilities(WebXRDisplayCapabilities capabilities)
        {
#if UNITY_EDITOR
            // Nothing to do
#elif UNITY_WEBGL
            _capabilities = capabilities;
            if (!capabilities.supportsImmersiveVR)
            {
                WebXRUI.displayXRElementId("novr");
            }
#endif

            if (OnXRCapabilitiesUpdate != null)
            {
                OnXRCapabilitiesUpdate(capabilities);
            }
        }
Esempio n. 3
0
        // Handles WebXR capabilities from browser
        public void OnXRCapabilities(string json)
        {
            WebXRDisplayCapabilities capabilities = JsonUtility.FromJson <WebXRDisplayCapabilities>(json);

            OnXRCapabilities(capabilities);
        }
 public void OnXRCapabilities(WebXRDisplayCapabilities cap)
 {
     this.capabilities = cap;
     OnXRCapabilitiesUpdate?.Invoke(cap);
 }