[英]Unity 3D is not loading new references from MonoDevelop
我正在尝试使用以下方法创建一个新变量:
public Text customText;
要使用Text
类型,我需要包括:
using UnityEngine;
using UnityEngine.UI;
但是我的MonoDevelop引用列表中不存在此引用。 我手动下载并手动添加了参考; 现在,我可以使用Text
类型并导入UnityEngine.UI
。
嗯,这是问题所在。 编译解决方案时,在MonoDevelop上出现以下错误:
Error: The compiler appears to have crashed. Check the build output pad for details. (Assembly-CSharp)
Error: The compiler appears to have crashed. Check the build output pad for details. (Assembly-CSharp)
。
但是在Unity3D上我得到了错误:
Assets/UI/Scripts/HudController.cs(2,19): error CS0234: The type or namespace name `UI' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
dll UnityEngine
默认位于引用列表中,但不是UnityEngine.UI
。
我做错了什么?
我遇到过这个问题。 实际上我已经看过很少的解决方案,但是他们只帮助我推出了几个Unity。 这是链接:
1) http://forum.unity3d.com/threads/unityengine-ui-dll-is-in-timestamps-but-is-not-known-in-assetdatabase.274492/#post-2015083 (j.robichaud发表) )
2) http://answers.unity3d.com/questions/847994/unityeditorui-reference-missing.html
我希望它能帮助你。 就我而言,只有重新安装才可以解决。 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.