这是我项目中的代码
using UnityEngine;
using Cinemachine;
public class CameraCollider : MonoBehaviour {
public void OnTriggerExit(Collider other) {
Debug.Log("Test");
}
}
我正在使用 Cinemachine 包。这是我得到的错误:
Assets\Scripts\CameraCollider.cs(2,7): error CS0246: The type or namespace name 'Cinemachine' could not be found (are you missing a using directive or an assembly reference?)
到目前为止我已经尝试过
- 重新安装骑士
- 删除项目目录中的 Rider 文件
- 删除 .idea 文件
