Questions tagged [scenemanager]
The scenemanager tag has no usage guidance.
35
questions
0
votes
3
answers
89
views
What is the best way to implement a scene manager?
I'm trying to create a scene manager system for a small framework I'm writing on top of SDL2. I have implemented a scene management system that works, but I am not sure if it is structured how it ...
0
votes
0
answers
55
views
Application.WaitForAsyncOperationToComplete() causes game-freeze in Editor
I'm creating a pause menu for my game and I have two scenes: a menu scene (Scene1) and a game scene (Scene2). I load them using the command 'SceneManager.LoadScene(1);' for the menu scene and '...
0
votes
0
answers
264
views
How do I load a scene in Unity for the current client, but not any other client?
I'm currently using NetworkManager.Singleton.SceneManager.LoadScene using the Netcode package, but it loads the new scene for both the current player and any other connected clients. I want it to only ...
0
votes
1
answer
164
views
Point System Using a GameManager?
I am trying to use a GameManager script to store and hold my players points, across multiple levels. The problem is that I have no idea how I should implement this. Should I declare the points ...
0
votes
1
answer
71
views
How can I make a button active when all the items of my array have been displayed? (for a dialogue scene)
I've coded something in Unity using C# (see below) for a dialogue scene separate from the actual game. On the click of a button from the game, the player is taken to this dialogue scene where the ...
0
votes
1
answer
292
views
Prevent Unity From Loading The Next Scene After Getting to the Final Scene
I'm a beginner in Unity, I wrote a script that will load the next scene whenever monsters in a scene are dead. The script is working fine.
Here's my script.
...
0
votes
1
answer
115
views
How to complete a level and move on to the next level?
So, I need to load a different level when the user has crossed the entire level and collides (or triggers) a certain object. For that I have declared
...
1
vote
2
answers
2k
views
How do I load scene content but not show it until later?
In my game, I have
A start up scene that has a 1 script. This script loads
The inventory scene
The first level
I don't want to show the inventory scene, I just want to pre-load it.
Therefore I have ...
1
vote
1
answer
538
views
Scenes do not stop showing "(is loading)"
I want to rebuild the RE4 game behaviour.
In RE4, the inventory screen is a scene of its own.
In Unity, the scenes which are loaded additively inherit the skybox / lights from the first scene loaded.
...
0
votes
1
answer
186
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
2
answers
881
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
0
answers
49
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
0
answers
73
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
1
answer
47
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
1
answer
101
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
1
answer
605
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
0
answers
1k
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
0
answers
43
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
1
answer
2k
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
2
answers
1k
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
1
answer
2k
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:
...
-2
votes
3
answers
6k
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
1
answer
68
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
2
answers
137
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
1
answer
688
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
0
answers
724
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 ...
0
votes
3
answers
1k
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
1
answer
748
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 ...
17
votes
3
answers
33k
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
1
answer
11k
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 ...
4
votes
4
answers
6k
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
1
answer
106
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
1
answer
3k
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
1
answer
4k
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
1
answer
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 ...