- Home /
Changing Cameras
Hi guys can you please help me with a script where i can change from one camera to another within the same scene, when the mobile device's orientation is changed from landscape left to right. I am using Unity for android...
Thanks in advance
Answer by Chris D · Jun 24, 2011 at 05:42 PM
Check out these links:
http://forum.unity3d.com/threads/82882-Switch-camera-with-js
http://forum.unity3d.com/threads/38142-Camera-smooth-zoom-over-set-time-%28Project-Included%29
http://answers.unity3d.com/questions/14381/main-camera-switch.html
Don't forget to use the search function (both here and on google). For detecting orientation, see the docs here.
Answer by Anxo · Jun 24, 2011 at 04:49 PM
Depth is like your camera layers. A camera with a depth of 1 will always overlay a camera with a depth of 0. But you might also want to enabled or disable the off camera or just switch how one camera functions on the event of orientation change instead because if I am not mistaking, 2 cameras with 2 depths means 2 renders? not sure about that but it would make sense to me that it would take more to compute because you are able to overlap partially.
Your answer
Follow this Question
Related Questions
Phone camera autofocus 0 Answers
MOBILE - FPS Camera Rotation HELP 0 Answers
Camera "Don't Clear" flag doesn't work on Android ? 1 Answer
Making the camera show mobile view... 0 Answers
Mobile Device Video Camera 1 Answer