微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决找不到命名空间名称“ 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文件夹中的该程序集文件中即可。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。