相机围绕物体旋转,并且有Y轴角度限制,可通过parameters.offset 修改使目标物不在画面中心 using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.EventSystems; using UnityEngine.UI; public class CameraController : MonoBehaviour { public static CameraController instance; public Transform ModelRoot; //目标物 public Transform[] targets; //空物体 [HideInInspector] public int index; // 当前的场景 private int comeBack = 0; // 返回主页计数 private Transform curtarget; // 当前摄像机锁定的目标 [System.Serializable] public...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with float
Contact float, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack