I'm using the ARKit plugin and can't seem to track down the cause of this one. I have a main menu scene that loads a gameplay scene. The gameplay scene features all of the ARKit stuff from the MultiARManager asset.
When testing builds on iPhones, we see a flashing / flicker during the transition between these two scenes. It doesn't happen every single time the scene is loaded, but happens consistently when launching the app for the first time, or after manually closing it and re-opening it.
I tried creating a transition that would cover the screen during this but it didn't work. That seems kind of hacky anyways. I'm hoping someone else can help shed some light on the issue.
Here is my code that loads the scene.
IEnumerator LoadingSceneRealProgress(string sceneName) {
//yield return new WaitForSeconds(0);
_scene = SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Single);
// disable scene activation while loading to prevent auto load
_scene.allowSceneActivation = true;
while (!_scene.isDone) {
//loadingProgbar.value = _scene.progress;
LoadProgressPercent = _scene.progress;
if (_scene.progress >= LoadReadyPercent)
{
LoadComplete = true;
if (_applicationManager != null)
{
ApplicationManager.OnSceneLoaded(_scene);
}
if (_simulationManager != null)
{
SimulationManager.OnSceneLoaded(_scene);
}
}
//Debug.Log(_scene.progress);
yield return null;
}
}
↧