当前位置:网站首页>Unity: 脚本缺失 “The referenced script (Unknown) on this Behaviour is missing!“
Unity: 脚本缺失 “The referenced script (Unknown) on this Behaviour is missing!“
2022-06-26 21:54:00 【Peter_Gao_】


有时,当我开始游戏时,我会收到毫无意义的警告。我不知道它们来自哪里,我没有任何对象来处理不存在的脚本。如何删除或修复这些消息?
当我在检查器中右键单击文件的图标时,我得到两个可能的选项。它们都不起作用,或者当我尝试单击它们时,没有任何反应。
5
It happens when the file and the name class has not the same name.
Example:
- The file is named SingleCube.cs
- The class definition is
public class Cube : MonoBehaviour
In this case, Unity is not able to link the file and the class. Both have to have the same name.
- The file should be SingleCube.cs
- And the class definition
public class SingleCube : MonoBehaviour
当文件和 name 类的名称不同时,就会发生这种情况。 示例:该文件名为 SingleCube.cs类定义为公共类 Cube : MonoBehavior 在这种情况下,Unity 无法链接文件和类。两者必须具有相同的名称。 该文件应为 SingleCube.cs和类定义公共类 SingleCube: MonoBehaviour
unity3d - Unity: "The referenced script (Unknown) on this Behaviour is missing!" - Stack Overflow
从预制中移除缺少的脚本,重新挂载脚本。
边栏推荐
- Implementation of collaborative filtering evolution version neuralcf and tensorflow2
- VB.net类库——4给屏幕截图,裁剪
- Flutter 中 ValueNotifier<List<T>> 监听问题解决
- How to enable Hana cloud service on SAP BTP platform
- 【数学建模】基于matlab GUI随机节点的生成树【含Matlab源码 1919期】
- Yolov6: the fast and accurate target detection framework is open source
- 大龄程序员的一些出路
- Simple Lianliankan games based on QT
- leetcode:1567. 乘积为正数的最长子数组长度【dp[i]表示以i结尾的最大长度】
- 十大券商注册开户有没有什么风险?安全吗?
猜你喜欢
随机推荐
证券注册开户有没有什么风险?安全吗?
Sword finger offer 12 Path in matrix
LabVIEW Arduino tcp/ip remote smart home system (project part-5)
Kdd2022 𞓜 unified session recommendation system based on knowledge enhancement prompt learning
CVPR 2022 | 美团技术团队精选论文解读
Common configuration of jupyterlab
leetcode:152. Product maximum subarray [consider DP of two dimensions]
财务费用分析怎么分析
Web crawler 2: crawl the user ID and home page address of Netease cloud music reviews
茂莱光学科创板上市:拟募资4亿 范一与范浩兄弟为实控人
Solution of valuenotifier < list < t > > monitoring problem in fluent
QT环境下配置Assimp库(MinGW编译器)
leetcode:6107. 不同骰子序列的数目【dp六个状态 + dfs记忆化】
How to analyze financial expenses
API管理之利剑 -- Eolink
leetcode:710. 黑名单中的随机数【映射思维】
大龄程序员的一些出路
在哪家券商公司开户最方便最安全可靠
Comprehensive evaluation of online collaboration documents: note, flowus, WOLAI, Feishu, YuQue, Microsoft office, Google Docs, Jinshan docs, Tencent docs, graphite docs, Dropbox paper, nutcloud docs,
【题解】剑指 Offer 15. 二进制中1的个数(C语言)








