在项目中添加开源代码后,是否缺少Unity上的程序集引用?

时间:2018-01-16 08:03:16

标签: c# unity3d

我下载了一个开源代码文件夹并将其放在我项目的脚本文件夹中。

弹出这个错误:

Assets/Scripts/HTMLEngine.Unity3D/HtmlDevice.cs(26,31): error CS0246: The type or namespace name `HtDevice' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlFont.cs(25,29): error CS0246: The type or namespace name `HtFont' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlImage.cs(26,30): error CS0246: The type or namespace name `HtImage' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlLogger.cs(25,31): error CS0246: The type or namespace name `HtLogger' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlBehaviour.cs(151,13): error CS0246: The type or namespace name `HtCompiler' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlDevice.cs(50,25): error CS0246: The type or namespace name `HtFont' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlDevice.cs(67,25): error CS0246: The type or namespace name `HtImage' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlDevice.cs(83,39): error CS0246: The type or namespace name `HtRect' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlDevice.cs(83,52): error CS0246: The type or namespace name `HtColor' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlFont.cs(72,29): error CS0115: `HTMLEngine.Unity3D.HtmlFont.LineSpacing' is marked as an override but no suitable property found to override
Assets/Scripts/HTMLEngine.Unity3D/HtmlFont.cs(77,29): error CS0115: `HTMLEngine.Unity3D.HtmlFont.WhiteSize' is marked as an override but no suitable property found to override
Assets/Scripts/HTMLEngine.Unity3D/HtmlFont.cs(84,25): error CS0246: The type or namespace name `HtSize' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlFont.cs(97,35): error CS0246: The type or namespace name `HtRect' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlFont.cs(97,48): error CS0246: The type or namespace name `HtColor' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlImage.cs(68,29): error CS0115: `HTMLEngine.Unity3D.HtmlImage.Width' is marked as an override but no suitable property found to override
Assets/Scripts/HTMLEngine.Unity3D/HtmlImage.cs(77,29): error CS0115: `HTMLEngine.Unity3D.HtmlImage.Height' is marked as an override but no suitable property found to override
Assets/Scripts/HTMLEngine.Unity3D/HtmlImage.cs(88,35): error CS0246: The type or namespace name `HtRect' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlImage.cs(88,48): error CS0246: The type or namespace name `HtColor' could not be found. Are you missing an assembly reference?
Assets/Scripts/HTMLEngine.Unity3D/HtmlLogger.cs(32,34): error CS0246: The type or namespace name `HtLogLevel' could not be found. Are you missing an assembly reference?

这是有错误的cs文件之一

namespace HTMLEngine.Unity3D
{
    public class HtmlDevice : HtDevice //This HtDevice turns red indicating an error
    {
        ....
    }
}

为了解决这些错误,我需要做些什么?

0 个答案:

没有答案