Scenes are not loading when i try my game on android

I’m Testing my game with unity 6 and my scenes are not loading when i open the game on my android device. I have like 10 scenes: 1 main scene which has the player and other elements of the game and the other 9 scenes are the maps, anyway is just loading the Main scene in the build. I have a script where i’m loading the scenes additively but those lines are commented and even removed from the script and still not working which means it should load my scenes because there is not one line managing the scenes of course all my scenes are loaded in the editor but my character is falling into the void when i open the game on my android device or a windows build and yes, the scenes are listed in the buid profile > scene list

Confused - you said you commented them - and removed from the script? well what would load it without the script?

Yes i commented them and it didn’t worked, then i remove those lines from the script because i though “well, maybe it is a bug” I remove: using UnityEngine.SceneManagement; and SceneManager.LoadScene(“5”, LoadSceneMode.Additive);
well that is just the line for the scene called 5, but i did it for all the scenes

BTW i have this bug for days now, i posted it on another topic about java stuffs but i was ignored by the unity guy who was helping me there, so i created another topic today

well if you remove a loadscene, its not going to load it, is it?
Anyway, to check whats going on, put debug logs in so you can see whats going on

the scenes are listed in the build, that line is used when the scenes are listed but unloaded, all my scenes are loaded

Ah, now we are getting somewhere. See this might be why someone gave up, if you cannot articulate the problem in a reasonably comprehensive manner, and maybe a couple of questions later the person trying to help is actually more confused than when they started, it is common that people lose the will to help because its just too much mess.

So.

Your problem you are trying to tell us that

You build a game with a target of android - it maybe version of java sdk specific, so, mentioning which is a good plan, did you try others?
When run (I assume on the android not in the ide) you’re saying instead of scenes being loaded additive as per your code, they seem to be replacing the existing.

Can you reprodce it in a brand new project where say theres really only 1 script and say 3 scenes, and nothing else? If you cant, then this tends to point back to something inside your own code (or code you may have used from asset store/github etc)

Perhaps a short video, showing it work inside the ide, and a second showing it on the android device? to show this is what was expected and the code worked here, but this is what happens at the end.

the debug logs are still a good plan as it may help you identify code flow on the android device that isnt following the same as on your pc.

Sorry i appreciate your help and i don’t want to be a PITA but, i actually wrote that the scenes are loaded in the first post:

I’ll try that…

there could be a lot of reasons why it doesn’t work and not having clear information when asking for help doesn’t help at all.

I suggest creating a new empty project and test your code/workflow and see if you can load some simple scenes in a default windows or mac project.

if that works then try android see if that work.

Again sorry pt2, but i explained all the relevant details in the first post, i don’t know what else i need to add sorry, afaik, if i have a script using that line to load addictively scenes, that means that code is loading a scene that is listed but unloaded (at least that is how it works on unity 2018, 2019, 2021) If i remove that code and i load the scenes in the hierarchy, those scenes should be loaded automatically (at least that is how it works on unity 2018, 2019, 2021)

you should post that code that doesn’t work

i did it already, but ok, here it is again the full script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.SceneManagement;

public class GameSystem : MonoBehaviour
{

void Start()
    {
		Player = GameObject.FindGameObjectWithTag("Player");
        SceneManager.LoadScene(“5”, LoadSceneMode.Additive);
		
    }
}

Edit: that’s the code to load Scenes additively, but again, if i delete that line of code and i load the scenes manually those scenes are not loaded on the build and again, those scenes are listed in the build data
Edit 2: looks like you guys don’t understand my problem haha, there is not bad code…

ok you won because really, i don’t see any code in this thread so I guess I’m out

i’m sure it is a bug, btw i just try a windows build and it doesn’t work either…

so these scenes are loading or not? can you see visually these scenes?

maybe you forgot to add collisions and stuff, try moving the player 4 units above see what happens

XD this scenes are working fine on unity 2021… my character starts above always, of course i have collisions, the game is working perfectly fine when i try it on the editor.
Edit: also on 2021 the game works perfectly fine exported to android

well you thought you did, but it didnt answer my questions :stuck_out_tongue: your own words say you have 10 scenes, 1 is the main, the other 9 are maps, that there is a script where you load scenes additively but you commented them out… so that then says they arent loaded :stuck_out_tongue: you say your scenes are loaded but you then talk like they arent visible or working, so it isnt clear… and this is what we are trying to extract from you

Just remember youve been working with this for a while, we have never seen it, we have zero clues it would be like you trying to tell me where i put my glue… how do you know you dont even know where I am in the house…

So lets once again qualify

it works in unity ide
it doesnt work in the windows build
it doesnt work in the android build

It was working in a build with unity 2021, but that was 3 odd years ago unity, so ,a fair bit has changed since then, while primarily the core principles can still apply, there have been a lot of changes

Like I said, if you can show a video of it working in the ide, and another of it not on even a windows build as that isnt working either… we can have a little view of what you see

are there messages in the log files on windows (the game log not the unity editor logs) or even the android logs, either, both…

Is there anyone from Unity that can help with this?

all that you are going to see in the video is my character falling into the void and in the editor my scenes working as intended.

Do you know where i can find that log file on the build?
BWT i edited the main post i hope that help you to understand.

Ive re-read your post … now it makes even less sense

So now you seem to believe that because youve listed 10 scenes in the build and theres no script all should be loaded… nope… only the first, the code has to add more… If you as a developer have additively opened other scenes while working, and hit play, this is not guaranteed in the end game, just as if you opened scene 6, (assuming order 0,1,2,3,4,5,6,7,8,9 ) then, pressing play starts at 6, not 0…

The log files arent stored “on the build” on windows they live in the depths of your profile, and no, i cant tell you because it depends on a number of values you typed in in places, but unity well documents where to find them, and on android etc, you need to use log viewing which is also documented

yeah i just needed to click a button to see the log ¯_(ツ)_/¯ (i didn’t see it in my android device because the screen is too small and the button is also pretty small)
Anyway it shows a lots of meshes blocked i guess in the reimport process (from 2021 to 6) something went wrong

There are those errors, but also there are log files generated by say the windows build when running - which cant be obtained with just a button click from unity - you have to go find them but they also can be of assistance, but it sounds like you have your first clue