unity 導(dǎo)入了Bitmap使用后報錯:
error CS0246: The type or namespace name ‘XXX’ could not be found (are you missing a using directive or an assembly reference?)
解決方案如下:
.NET Standard 2.1與 .NET Foundation 發(fā)布的 .NET Standard 2.1 配置文件匹配。 Unity 建議新項目使用 .NET Standard 2.1。 它比 .NET 4.x 小,有利于尺寸受限的平臺。 Unity 承諾在 Unity 支持的所有平臺上支持此配置文件。文章來源:http://www.zghlxwxcb.cn/news/detail-858882.html
.NET Framework提供對最新 .NET 4 API 的訪問權(quán)限。 包括 .NET Framework 類庫中提供的所有代碼,并且支持 .NET Standard 2.1 配置文件。 如果 .NET Standard 2.0 配置文件中未包含項目所需的部分 API,請使用 .NET 4.x 配置文件。 但此 API 的某些部分并非在所有 Unity 平臺上均受支持。文章來源地址http://www.zghlxwxcb.cn/news/detail-858882.html
到了這里,關(guān)于unity error CS0246: The type or namespace name ‘xxx‘ could not be found (are you missing a using的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!