Exemplo n.º 1
0
    public void OnVRCapabilities(WebVRDisplayCapabilities capabilities)
    {
        #if !UNITY_EDITOR && UNITY_WEBGL
        if (!capabilities.hasOrientation)
        {
            WebVRUI.ShowPanel("novr");
        }
        #endif

        if (OnVRCapabilitiesUpdate != null)
        {
            OnVRCapabilitiesUpdate(capabilities);
        }
    }
Exemplo n.º 2
0
    public void OnVRCapabilities(WebVRDisplayCapabilities capabilities)
    {
        #if !UNITY_EDITOR && UNITY_WEBGL
        if (!capabilities.canPresent)
        {
            WebVRUI.displayElementId("novr");
        }
        #endif

        if (OnVRCapabilitiesUpdate != null)
        {
            OnVRCapabilitiesUpdate(capabilities);
        }
    }
 private void onVRCapabilitiesUpdate(WebVRDisplayCapabilities vrCapabilities)
 {
     capabilities = vrCapabilities;
     EnableAccordingToPlatform();
 }
    // Handles WebVR capabilities from browser
    public void OnVRCapabilities(string json)
    {
        WebVRDisplayCapabilities capabilities = JsonUtility.FromJson <WebVRDisplayCapabilities>(json);

        OnVRCapabilities(capabilities);
    }