Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,817
    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