UpdateOverlay() public méthode

public UpdateOverlay ( SteamVR, vr ) : void
vr SteamVR,
Résultat void
Exemple #1
0
    // Token: 0x06005F5A RID: 24410 RVA: 0x00217CD0 File Offset: 0x002160D0
    private IEnumerator RenderLoop()
    {
        while (Application.isPlaying)
        {
            yield return(this.waitForEndOfFrame);

            if (!SteamVR_Render.pauseRendering)
            {
                CVRCompositor compositor = OpenVR.Compositor;
                if (compositor != null)
                {
                    if (!compositor.CanRenderScene())
                    {
                        continue;
                    }
                    compositor.SetTrackingSpace(this.trackingSpace);
                }
                SteamVR_Overlay overlay = SteamVR_Overlay.instance;
                if (overlay != null)
                {
                    overlay.UpdateOverlay();
                }
                this.RenderExternalCamera();
            }
        }
        yield break;
    }
Exemple #2
0
        public void SetOverlayTexture(Texture tex)
        {
            switch (m_OverlayMode)
            {
            case OverlayMode.Steam:
                m_SteamVROverlay.texture = tex;
                m_SteamVROverlay.UpdateOverlay();
                break;

            case OverlayMode.OVR:
#if OCULUS_SUPPORTED
                m_OVROverlay.textures = new[] { tex };
#endif // OCULUS_SUPPORTED
                break;
            }
        }