Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question SceneManager.LoadScene is not working in android build

Discussion in 'Android' started by includeAshe, Feb 24, 2023.

  1. includeAshe

    includeAshe

    Joined:
    Feb 2, 2021
    Posts:
    3
    Everything works well in the editor, but when I try to load a scene in the android build, it freezes and I have no idea why this problem is happening...

    [List of things I have tried]

    • I tried the scene names and the build index for the function's parameter but it didn't work.

    • Neither did LoadSceneAsync.

    • All of my scenes are in the build setting.

    • I didn't check split application binary option.

    • I'm using Unity version 2021.2.8f1 for my project.
    I would highly appreciate it if you give me some help.

     
  2. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    Any exceptions being logged over ADB?
     
  3. includeAshe

    includeAshe

    Joined:
    Feb 2, 2021
    Posts:
    3
    There's no exception so I am curious about what is happening.
    When I clicked the button using SceneManager.LoadScene(), the whole game froze and made no reply.
    I used the same code with other scenes but it didn't work in some particular scenes...
    So I thought it was a kind of problem that came from Unity Editor itself and I made the project from the start again.
    But still, it's frustrating because I can not understand it clearly at all.