Questions tagged [scenemanager]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

How to reset scene (stage1) when selecting it from Level stagemain menu

Good day I have a problem when the player finish stage 1 the screen look like this Then going back to selecting level When I try to play the stage 1 again. I want to reset the stage 1 so i can play ...
0
votes
0answers
30 views

Unity change scene with button

I already understand how to do this but the problem i'm having is: When i go from "MainMenu" to "Level01" and then back the buttons lose there reference. What can i do to fix this? ...
0
votes
1answer
38 views

How should I load/change/activate scenes?

Scenes are confusing the hell out of me and I'm pretty sure they should be simple to understand. When the game loads, only the current scene has a buildIndex != -1. In order give it a 'real' build ...
0
votes
2answers
38 views

Creating UI with multiple scenes inside of a scene

I am trying to create a menu UI. I have three menus, one main one that I want to display in the center of the screen and two smaller ones that will come out from the left and right respectively. I ...
0
votes
0answers
62 views

Unity3D : Unload a loaded and inactive scene

I am using the following coroutine to attempt to unload asynchronously a loaded but inactive scene in Unity : ...
1
vote
0answers
40 views

how can this random scene code run well when it is reloaded?

I have a code for random scenes, the scenes that I have are 10 randomized scenes, but when I reload the scene there is only one scene. ...
1
vote
1answer
166 views

Running a scene in the background

I've made 2 scenes where a room is another scene and the other is the outside of it. But whenever I do something in either scenes, and enter the other, it resets everything I did in the first one. I'm ...
0
votes
2answers
438 views

Unity scenemanagement freezes

I am very new to Unity, and coding in general. Anyways, I'm trying to load another scene on click, but when I try to do so in the editor, Unity freezes. Also, it, by chance it seems, worked twice when ...
1
vote
1answer
697 views

Waiting for object's Awake() after loading a new scene synchronously

I have a GameScene with an initially active GameObject in it, which has a singleton component: ...
-3
votes
1answer
3k views

How to get current scene name?

I want to acquire scene name to apply it in a condition. I have an int variable 'audioplay' that is going to determine which AudioClip to play. I tried ...
0
votes
2answers
866 views

When scene loaded up, Position player at a start point. (Unity2D)

If pointName and player.startPoint are true, shown by the inspector, why doesn't the player's position go to the start point with a pointName of "ToNeighborhood". Note: The code runs if pointName == ...
0
votes
1answer
47 views

Unity Loadscene link errors

I am working on a mobile game, and am experiencing a strange bug/error. When I load into the main scene , all is fine everything works and no errors. However there are two scenario's in which it ...
1
vote
2answers
78 views

Loading scene doesn't reactivate gameobjects

I have some levels and a main menu. When starting the game from the main menu (in the editor debug mode) I can select a level a load it, no problem. However, when I wish to go back to the main menu ...
-2
votes
1answer
492 views

Why I can't change from one scene to another by using SceneManager.LoadScene()?

I made a game with two scenes and everytime I call the function SceneManager.LoadScene(), no matter the value, type(string or <...
1
vote
0answers
399 views

How do I correctly unload an additive Scene in WebGL?

I am creating an app in WebGL. I have a loading scene that I am loading additively: SceneManager.LoadScene("Loading Scene", LoadSceneMode.Additive); It loads ...
-1
votes
1answer
1k views

Unity-How to use one scene's camera in another scene?

I have two scenes in my game, one is the menu scene with the UI and the other is the scene where all my game items are. Right now my UI looks too plain so what I want is to display my actual game ...
0
votes
3answers
476 views

Load nextLevel with a button click

Can anyone help me someone with this code? I'd like to go to the next level by clicking a button: example my level name is L1,L2,L3,L4,L5,L6,L7 and when I finish level L1, I want to go to level L2 ...
1
vote
1answer
678 views

Loading scene before load the level?

I didn't understand this point yet. for me its complicated. What i'm trying to do is a level as loading scene work to appear before load the game level. when loading progress bar complete you have to ...
14
votes
2answers
24k views

Smooth loading screen between scenes

I created a loading screen to display a loading animation as the next scene is loading. I load the next scene asynchronously with: ...
-2
votes
1answer
6k views

How do I load scene using scene manager build index in the build setting unity3d

I only got one scene to load when the timer reaches zero; I need one more scene to load. The scene manager builder index is not working for me. I have tried ...
3
votes
4answers
2k views

Get all objects of Additively loaded Scene? (LoadSceneMode.Additive)

I learned how to Load and unload scenes in unity. using LoadSceneMode.Additive. I like to spit up my scenes as much as possible and retain the stuff I need as I go along. I'd like to be able to find ...
1
vote
1answer
65 views

Best way of making scenes persistent?

I am using Unity 2D for the past 2 weeks and when it came for changing rooms i got disappointed. Its not like ex. Gamemaker where you press a button and the room becomes persistent. I have though a ...
3
votes
1answer
2k views

Respawn not working properly upon scene reload. Why is this?

So I made a respawn function and what is supposed to happen is the script it supposed to load a saved checkpoint. However I need to reset the scene (and again this worked just fine last night which ...
3
votes
1answer
3k views

Get all the gameobjects for a SceneManager scene in Unity

I'm using the new SceneManager to load multiple scenes in the same structure adopting the Additive method. I find it extremely useful but I wonder if there is a way to get all the GameObjects for a ...
2
votes
1answer
1k views

Smooth Scene transitions with SceneManager and additive scene in Unity

I'm trying to work with the new SceneManager class with Unity, I'd like to have smooth transitions between scenes. Currently I suppose that the only way to do those transitions is to manually ...