1. Missing a module? More about the new installer in 5.3 here
  2. VS Code Unity debugger extension preview
  3. Unity Developer Contest here

How Set Current Camera

Discussion in 'Scripting' started by Twil, Mar 20, 2010.

  1. Twil

    Twil

    Joined:
    Dec 23, 2009
    Messages:
    27
    Hello

    I have many camera in my scene.
    how can change the current camera ?
    Camera.current is read-only...

    Thanks
     
  2. petey

    petey

    Joined:
    May 20, 2009
    Messages:
    831
    The Cameras "Depth" Parameter will control which has the highest priority in the scene, mess around with that a bit and you should get what you're looking for.
     
  3. Twil

    Twil

    Joined:
    Dec 23, 2009
    Messages:
    27
    In fact all active camera are rendered.
    Ok for Depth=priority i understand.
    Thanks