Search Unity

How Set Current Camera

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

  1. Twil

    Twil

    Joined:
    Dec 23, 2009
    Posts:
    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
    Posts:
    1,823
    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
    Posts:
    27
    In fact all active camera are rendered.
    Ok for Depth=priority i understand.
    Thanks