Search Unity

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.