http://blog.csdn.net/liujunjie612/article/details/45847877 我们接着上一篇博文继续研究摄像机,这篇我们说下Unity中摄像机的切换,说到切换,前提是有多个 摄像机,所以我们新建二个摄像机. 我们再创建一个空物体挂上我们新建的脚本CameraSwitch,用来控制摄像机的切换 代码如下: using UnityEngine; using System.Collections; public class CameraSwitch : Mono
Primitive and Placeholder Objects 原始的基础物体 Unity can work with 3D models of any shape that can be created with modelling software. However, there are also a number of primitive object types that can be created directly within Unity, namely the Cube, S
1. 如果把代码放到按钮事件中调用,达不到想要的效果 2. 可以不用委托,但是要在Update函数中写调用CameraZoonIn的代码 3. 有很多需要改进的地方,可以参考使用 iTween 插件达到更好的效果 using UnityEngine; using System.Collections; public class test : MonoBehaviour { public delegate void dgCameraCompleted(Vector3 pos, Vector3 ro