Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Entire page reload after LoadSceneAsync

Discussion in 'Project Tiny' started by dallin_unity, Aug 19, 2021.

  1. dallin_unity


    Dec 18, 2019
    Hi, I got a bug that I can't find anything on log, after I try this function to load new sub scene
    Code (CSharp):
    1. private void LoadScene<T>() where T : struct
    2.         {
    4.             var sceneEntity = GetSingletonEntity<T>();
    5.             if (!sceneSystem.IsSceneLoaded(sceneEntity))
    6.             {
    7.                 var scene = EntityManager.GetComponentData<SceneReference>(sceneEntity);
    8.                 sceneSystem.LoadSceneAsync(scene.SceneGUID, new SceneSystem.LoadParameters { AutoLoad = true, Flags = SceneLoadFlags.LoadAdditive });
    9.             }
    10.         }
    Instead of loading the scene, it loads the entire page, only happen on mobile browser, I'm not sure about android phone but happens on my iphone, and this happens randomly, sometime it works and load the only scene, but sometime it load the entire page, weird
    And here is the log

    Thanks you guys, I really don't know what I do wrong here

    Attached Files:

  2. djsell


    Aug 29, 2013
    There have been several posts about iOS browser reloading the page periodically. I believe other people were seeing this behavior when using particles. It may have also been related to a possible memory leak? It's been a while, so I forget. Maybe you can search the forums a bit with that info.
    dallin_unity likes this.