Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Having the same camera in all scenes

Discussion in '2D' started by YanivAvrahami, Mar 12, 2017.

  1. YanivAvrahami

    YanivAvrahami

    Joined:
    Jun 26, 2016
    Posts:
    51
    I have 100 scenes, each scene has a camera, but I want only the camera from scene 1 to exist in each scene that I appear in.

    I use the function DontDestroyOnLoad() to make the camera exist in each scene but I always find my self with another camera that I don't want.

    Any ideas? thank you in advance.
     
  2. jackhearts

    jackhearts

    Joined:
    Apr 5, 2013
    Posts:
    103
    If you tag the cameras as 'EditorOnly' they won't/shouldn't be included in a build.

    You could use a master scene to manage stuff like that a bit easier though. Check out multi scene editing.