Questions tagged [scenemanager]
The scenemanager tag has no usage guidance.
28
questions
0
votes
1answer
36 views
Add Camera Dynamically?
I have a "A1" scene, and from there, I want to create a new scene "A2" on button
click and then I want to load the same scene. Creating a scene can be done with,
...
0
votes
2answers
113 views
How to render a large, seamless platforming world without scene transitions?
In the game Limbo for example, the whole 2-3 hours of gameplay takes place in one continuous world. The player navigates from one area to another seamlessly, with no obvious loading or transitions.
It ...
0
votes
0answers
30 views
How to deal with data transfer between scenes
What i would like to achieve is to have 1 global 2d map where armies could move (Scene 1). When they collide, trigger loads new scene, setup parameters like army size etc (Scene 2). Once battle is ...
0
votes
0answers
28 views
Correct way to control a scene
I'm trying to build an '90s style rpg game, think dragon warrior series, where it will have a UI box at the bottom of the screen where the user makes a choice like attack, move, eat etc
I'm thinking ...
0
votes
1answer
30 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 ...
-2
votes
1answer
88 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 their reference. How can I fix this?
...
0
votes
1answer
66 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
0answers
408 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
42 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
687 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
986 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
1k 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
4k 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
1k 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
50 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
94 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
580 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 <...
2
votes
0answers
516 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
2k 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
801 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
724 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 ...
15
votes
2answers
30k 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
8k 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
3k 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
71 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
2k 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 ...