using Microsoft.MixedReality.Toolkit.Utilities.Solvers; using UnityEngine; /// /// 面板 /// public class FollowCamera : MonoBehaviour { private bool isFollow; public void Follow() { if (isFollow) { GetComponent().UpdateLinkedTransform = false; } else { GetComponent().UpdateLinkedTransform = true; } isFollow = !isFollow; } }