unity3d鼠标滚轮实现摄像头拉近后退

using UnityEngine; using System.Collections; public class CubeStatic : MonoBehaviour { public float minFov = 15f; public float maxFov = 90f; ...

2017-04-21 10:07:30

阅读数 2412

评论数 0

unity-UGUI隐藏按钮

方法1:Button btn; btn.gameObject.setActive(false);方法2:Button btn; btn.transform.localScale = Vector3.zero;

2017-03-21 12:44:13

阅读数 5028

评论数 0

unity-实现摄像机跟随物体(Vector3.SmoothDamp)

直接贴代码using UnityEngine; using System.Collections;public class FllowTarget : MonoBehaviour { public Transform target; //摄像机要跟随的人物 public float smo...

2017-03-16 10:01:02

阅读数 3696

评论数 0

提示
确定要删除当前文章?
取消 删除