# Switch between 2 cameras

**URL:** https://discussions.unity.com/t/switch-between-2-cameras/403077
**Category:** Camera
**Tags:** Scripting
**Created:** [December 4, 2009, 4:57pm UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077 "2009-12-04T16:57:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anon\_88896366](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_88896366](https://discussions.unity.com/u/anon_88896366)
#### Post date: [December 4, 2009, 4:57pm UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077/1 "2009-12-04T16:57:54Z")

</div>

Hello 🙂  
I want to put some cut scenes in my game. I have all what i need to do that (the cut scenes are ready to be used) except the command to switch beetween the main camera to the second camera, and back to the first camera. I only need some easy command for switch like “switchCam”. I searched on google some solutions, but no one works. The script in 3d platform games is too complicate…

Can anybody help me with a simple script command just for switch beetween my cameras?

---

<div class="post-metadata">

### Author: ![GargerathSunman](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/gargerathsunman/32/185234_2.png) [@GargerathSunman](https://discussions.unity.com/u/GargerathSunman)
#### Post date: [December 4, 2009, 5:10pm UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077/2 "2009-12-04T17:10:17Z")

</div>

currentCamera.transform.tag = “Respawn”;  
otherCamera.transform.tag = “MainCamera”;

The above should do it.

---

<div class="post-metadata">

### Author: ![anon\_31954329](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@anon\_31954329](https://discussions.unity.com/u/anon_31954329)
#### Post date: [December 4, 2009, 9:01pm UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077/3 "2009-12-04T21:01:28Z")

</div>

Here is the whole script:

> **[unifycommunity.com](http://ww12.unifycommunity.com/wiki/index.php?title=SwitchCamera&usid=18&utid=26953247441)**
>
> Unity 3D Development,Unity Game Engine,Unity 3D,Unify,Blender Game Engine,Download Special Effects

You can also do more complicated transitions with some of the other camera scripts listed here under “camera controls”:

> **[unifycommunity.com](http://ww12.unifycommunity.com/wiki/index.php?title=Scripts&usid=18&utid=26950093866)**
>
> Unity 3D Development,Unity Game Engine,Unity 3D,Unify,Blender Game Engine,Download Special Effects

---

<div class="post-metadata">

### Author: ![anon\_88896366](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_88896366](https://discussions.unity.com/u/anon_88896366)
#### Post date: [December 4, 2009, 10:15pm UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077/4 "2009-12-04T22:15:53Z")

</div>

Thank you very much!!! Works perfectly!! 😄  
I have another question ^^… is it possible to swith from a camera to another with a fade effect?

---

<div class="post-metadata">

### Author: ![ivkoni](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/ivkoni/32/320785_2.png) [@ivkoni](https://discussions.unity.com/u/ivkoni)
#### Post date: [December 4, 2009, 10:26pm UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077/5 "2009-12-04T22:26:12Z")

</div>

sure as bradjensen68 said:

[http://www.unifycommunity.com/wiki/index.php?title=CrossFade](http://www.unifycommunity.com/wiki/index.php?title=CrossFade)

[http://www.unifycommunity.com/wiki/index.php?title=CrossFadePro](http://www.unifycommunity.com/wiki/index.php?title=CrossFadePro)

---

<div class="post-metadata">

### Author: ![anon\_88896366](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anon\_88896366](https://discussions.unity.com/u/anon_88896366)
#### Post date: [December 5, 2009, 4:31am UTC](https://discussions.unity.com/t/switch-between-2-cameras/403077/6 "2009-12-05T04:31:23Z")

</div>

Thank you very much to both of you, helped a lot!! 😄
