1. 通过cameraObject——> create other——> camera, 首先创建camera0和camera1两个摄像机;
2. 调整摄像机的位置和视角;
3. 通过GameObject——>create other 创建一个cube与sphere,调整两物体位置,如cube在camera0的视角中,sphere在camera1视角中;
4. 通过在project工程区,右键——>create ——> javascript, 创建cameraSwith.js文件;
5. 将cameraSwith文件分别附加给camera0和camera1,调整量摄像机的camera参数;
6. 选择play模式运行;