# Creating several scenes and switching between them

**URL:** https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586
**Category:** 2D
**Tags:** 2D
**Created:** [January 31, 2015, 7:41am UTC](https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586 "2015-01-31T07:41:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sohaib\_Alsafh](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/sohaib_alsafh/32/150910_2.png) [@Sohaib\_Alsafh](https://discussions.unity.com/u/Sohaib_Alsafh)
#### Post date: [January 31, 2015, 7:41am UTC](https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586/1 "2015-01-31T07:41:22Z")

</div>

Hi,

I would like to know how to create different scenes that users can switch between them using buttons (left and right). How do I do this?

Thanks in advance 🙂

---

<div class="post-metadata">

### Author: ![paolo\_lionhg](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@paolo\_lionhg](https://discussions.unity.com/u/paolo_lionhg)
#### Post date: [January 31, 2015, 12:24pm UTC](https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586/2 "2015-01-31T12:24:48Z")

</div>

this is very basic.

ctrl + s, save scene to create them.

use this to switch scenes. read everything written on this page.

> **[Unity - Scripting API: Application.LoadLevel](https://docs.unity3d.com/ScriptReference/Application.LoadLevel.html)**

as for the buttons, it depends how you want to create them. you can use ongui, canvas, or raycast objects.

i would highly suggest going through tutorials first before doing anything else.

---

<div class="post-metadata">

### Author: ![Sohaib\_Alsafh](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/sohaib_alsafh/32/150910_2.png) [@Sohaib\_Alsafh](https://discussions.unity.com/u/Sohaib_Alsafh)
#### Post date: [February 1, 2015, 5:24pm UTC](https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586/3 "2015-02-01T17:24:05Z")

</div>

I will. Thanks a lot 🙂

---

<div class="post-metadata">

### Author: ![Sohaib\_Alsafh](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/sohaib_alsafh/32/150910_2.png) [@Sohaib\_Alsafh](https://discussions.unity.com/u/Sohaib_Alsafh)
#### Post date: [February 2, 2015, 5:33pm UTC](https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586/4 "2015-02-02T17:33:55Z")

</div>

Dear Paolo,

I have gone through the documents. But the thing I want is somewhat different and even more simple. I tried to find something about it but could not.

What I want is to take the camera to another seen. As if you are flipping a page. As simple as that.

Would you please recommend something 🙂

---

<div class="post-metadata">

### Author: ![vakabaka](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/vakabaka/32/212722_2.png) [@vakabaka](https://discussions.unity.com/u/vakabaka)
#### Post date: [February 2, 2015, 6:43pm UTC](https://discussions.unity.com/t/creating-several-scenes-and-switching-between-them/565586/5 "2015-02-02T18:43:43Z")

</div>

if you will move camera in one scene, then use transform.position.  
add empty gameObjects, where the camera should be placed. Make c# script:

//make array of cameraPoints:  
public Transform [&nbsp;] cameraPoint;  
//pointer to switch  
int pointer = 0;  
//move camera to first point  
void Start () {transform.position = cameraPoint [0];}  
//check if left or right are pressed:  
void Update () { if(Input.GetKeyDown(KeyCode.RightArrow))  
{pointer -= 1;  
//be sure, that pointer will not be -1  
if (pointer \< 0) pointer =0;  
//move camera  
transform.position = CameraPoint [pointer];}  
}

then make for left key as for right, but pointer +=1;  
Add it on camera. Fill array with drag&drop with your empty gameObjects.  
I didnot check it, but something like this should work 🙂
