1. Submit bugs to enter our 5.4 Beta Sweepstakes. Read more about it here.
  2. Unity 5.4 public beta is now available for all users. Grab the build and visit the 5.4 beta forum.
  3. Missing a module? More about the new installer in 5.3 here.
  4. 4.7.1 released for Xcode 7.3 support. Thread 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:
    848
    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