class in UnityEngine.SceneManagement for managing scenes in unity
Questions tagged [scene-manager]
56 questions
0
votes
1 answer
How can I change scenes when 2 different player objects are inside a door's trigger at the same time?
There are player GameObjects which must have different tags: "Player1" and "Player2". There is a door GameObject, where if both players are inside the door's trigger, the scene will be changed.

sisva
- 41
- 6
0
votes
1 answer
Unity Android Build - error on change scene
I'm facing a rather odd problem, I'm using unity 2017.3.1f1 Personal.
When I build the APK and I copy that file to the phone and install it from the phone's file manager, I can't switch from the main menu to the first scene, the game crashes at the…

Herb
- 119
- 2
- 16
0
votes
0 answers
SceneChange script compiler error: unable to access due to protection level
I have this script that allows me to change to a different scene when I push a button. I've used it multiple times before with no issue, but recently I've been getting this compiler error that's telling me the script can't be accessed due to its…

MadDog Gaming
- 73
- 5
0
votes
1 answer
UNITY Cant change transform.position after loading scene
i have a some problem with my C# scirpt. So, the problem is after loading the scene, obj is moving to starting position on scene, not to the one i set. Can someone help me with this super hard problem. Please.
still not working, i tried make…

GimpFather
- 1
- 3
0
votes
1 answer
Should I use multiple parallel scenes?
I am working on a desktop app based on unity, lets say it looks like a video editor.
I am thinking of using one scene for the preview window and another for the whole UI around it so later I can reuse the preview scene for another application that…

Dev-kun
- 59
- 5
0
votes
1 answer
SceneManager.LoadScene is crashing for Android Devices
Ok, I've been testing a game with several scenes. In Unity and iOS devices, everything works perfect. In Android, always crash (or freeze if you prefer).
I'm using Unity 2017.2.0f3. and the line of code that crash is the next one (nextScene is a…

iOSTony
- 165
- 1
- 11
0
votes
1 answer
Trouble loading new scene with VRTK and Unity SceneManager
I’m trying to load a new scene in Unity (5.6.1) with VRTK but having troubles. I’ve tried SceneManager.loadscene (both single and additive modes) which put my VRTK camera in the next scene in the floor and not usable by VRTK. SteamVR_LoadScene…

johnnythecakes
- 43
- 5
0
votes
0 answers
Unity 3d scenes comes "gold"
Im new in Unity. Im watched several tutorials and I cant manage this:
When I reloaded an Scene, the new scene comes "gold". See the images:
Here the code I use:
public void reloadGame(){
SceneManager.LoadScene…

Diego Garcia
- 555
- 2
- 6
- 20
-1
votes
1 answer
Check if boolean is true from another script/scene
I'm writing a code in unity where the player clicks on a mousetrap, which sets the boolean mousetrap = true and increases its value to 1. That is attached to a gameobject called Trap. When I click on another gameobject in another scene, I want it to…

awooga
- 1
-1
votes
1 answer
unity scenemanager only reload active scene
public void startscene(string scnm)
{
Debug.Log("DF");
SceneManager.LoadScene(scnm);
Debug.Log("DF");
}
I used this code to go back to the menu scene and come to the game scene from the menu scene. And it workes fine when loading the…

신호진
- 69
- 1
- 8
-1
votes
1 answer
How to use a button in unity to go to different scene in different condition?
In my unity game there are 3 levels and when a player lose any level a same "Game Over" scene appears having a "play again" button and when the player clicks the button I want the player to go to the same level which he has lost.

Mohammad AL - Haque
- 65
- 11