Forum Discussion
VRfriend2016X
9 years agoProtege
Is there a way to remove the Hourglass graphic when changing scenes and also make it faster?
Everytime i load a new scene i get a long delay(at least 5 seconds or more) and an Hourglass graphic. It doesn't look good for a game. i would like the level change to be almost instantaneous. Any way to do it? I'm talking for Oculus Rift and unity 5.5
I use trigger cubes( box collider set as trigger) to create the thing that teleports me to the new level. And this is my script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LevelChanger : MonoBehaviour {
public string newScene;
void OnTriggerEnter(Collider Col)
{
if (Col.CompareTag ("Player"))
SceneManager.LoadScene (newScene);
}
}
I use trigger cubes( box collider set as trigger) to create the thing that teleports me to the new level. And this is my script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LevelChanger : MonoBehaviour {
public string newScene;
void OnTriggerEnter(Collider Col)
{
if (Col.CompareTag ("Player"))
SceneManager.LoadScene (newScene);
}
}
3 Replies
Replies have been turned off for this discussion
- MikeFTrusteeThe hourglass will show when timewarp is engaged. Best thing to prevent it is to load your scene asynchronously so that it happens in the background. You might still get hitches, but it will be better than a full stop
- VRfriend2016XProtege
MikeF said:
The hourglass will show when timewarp is engaged. Best thing to prevent it is to load your scene asynchronously so that it happens in the background. You might still get hitches, but it will be better than a full stop
and how exactly do you load asynchronously? Can you show me the code?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years agoAnonymous
- 5 years ago
- 6 months ago