Is it possible hide a complete scene or make it invisible? (Scripting)

Hi all, i’m new in Unity and programming but i do my very best :slight_smile:

atm i’ m hard working on a game-project and i have a little problem with my menu (and google dont want to help me :D)…

I’m using…

if(GUI.Button(Rect(200,50,45,45),"+")){
       Application.LoadLevelAdditive (2);			
       }

because i need the script and gameobjects of the old scene (different types of menuscreens like: character selection → charcreation (choose race → choose class)) and it works… but i want just to see the new scene and want to have the old scene on invisible. Is there a possibility to make the whole old scene invisible?

[8710-paint.jpg. I know about other possibilities like: making gameobjects and the GUI invisible, but it would take some time.|8710](here explaination in paint :D)

You can use gameObject.active"

For example:

var yourObject : Gameoject;
var clicked = false;
    
function Update () {
    
if (clicked == true) {
    
yourObject.active = false;
    
}
    
else {

yourObject.active = true;

}
    
}

What this does is if you assign the variable in the inspector (your game object), when clicked is true, your object will be turned off. It is is the equivalent of clicking the button at the top of your object in the inspector. If you need clarification, please ask.