Skip to content

Instantly share code, notes, and snippets.

Last active Aug 15, 2019
What would you like to do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CallLoadScreen : MonoBehaviour
public OVROverlay cubemapOverlay;
public OVROverlay loadingTextQuadOverlay;
public GameObject myCamera;
public float distanceFromCamToLoadText;
IEnumerator WaitforOVROverlay()
Transform camTransform = myCamera.transform;
Transform uiTextOverlayTrasnform = loadingTextQuadOverlay.transform;
Vector3 newPos = camTransform.position + camTransform.forward * distanceFromCamToLoadText;
newPos.y = camTransform.position.y;
uiTextOverlayTrasnform.position = newPos;
cubemapOverlay.enabled = true;
loadingTextQuadOverlay.enabled = true;
yield return new WaitForSeconds(0.1f);
// System.Threading.Thread.Sleep(2500);
cubemapOverlay.enabled = false;
loadingTextQuadOverlay.enabled = false;
yield return null;
public void LoadButton()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment