當對unity進行build操作,報了好幾條錯誤
解決方法如下:打開代碼提示的代碼文件 registerandload,找到使用AssetDatabase的那行,
用下面這兩行代碼包裹報錯的那行代碼。文章來源:http://www.zghlxwxcb.cn/news/detail-546440.html
#if UNITY_EDITOR
#endif
調(diào)整結果如下所示:
這樣問題就解決了文章來源地址http://www.zghlxwxcb.cn/news/detail-546440.html
到了這里,關于Unity Build時Unity 出現(xiàn)error CS0103: The name ‘AssetDatabase‘ does not exist in the current context的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!