Unity 社区

Unity新手入门compile error

,5 年前
发布于技术支持
1

问题描述

Unity新手入门,新建的项目就一直出现各种compile error,error cs0246

Unity版本

2021 . 1.4 Personal

平台

MacOS

相关代码

Library/PackageCache/com.unity.render-pipelines.universal@7.3.1/Editor/ShaderGraph/SubShaders/UniversalPBRSubShader.cs(9,7): error CS0246: The type or namespace name 'Data' could not be found (are you missing a using directive or an assembly reference?)

错误日志

在附件中上传Unity错误日志,方便社区给出最精确的回答。
784 次浏览
评论 0
3个回答
0
是不是项目版本和软件版本不一致?
4 年前回答
评论 0
0
4 年前回答
评论 0
0
你这是用新版本Unity打开旧项目了是吧? 去 Window - Package Manager 更新所有就的package 目前报错是你的 Universal RP
5 年前回答
评论 0

AI

全新AI功能上线

1. 基于Unity微调:专为Unity优化,提供精准高效的支持。

2. 深度集成:内置于团结引擎,随时查阅与学习。

3. 多功能支持:全面解决技术问题与学习需求。

AI