找不到命名空间名称“ Cinemachine”

问题描述

这是我在项目中的代码

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?)

到目前为止,我已经尝试过

解决方法

这最终比我预期的要容易。问题最终是与我一起工作的开发人员创建了一个我不知道存在的程序集文件。因此,我只需要将Cinemachine添加到scripts文件夹中的该程序集文件中即可。