1. 程式人生 > >《Unity3D網路遊戲實戰》學習筆記--Unity3D軟體安裝之error:CS0246The type or namespace name 'PostEffectsBase' could not

《Unity3D網路遊戲實戰》學習筆記--Unity3D軟體安裝之error:CS0246The type or namespace name 'PostEffectsBase' could not

參考:https://forum.unity.com/threads/posteffectsbase-class-missing.307584/

第一次新建工程的時候一直在報好幾個error:CS0246,後發現問題出在Assets--Import packge,安裝Unity時它預設未安裝standard Assets(標準的資源 ).重新安裝軟體時勾選

standard Assets setup。檢查Assets--Import packge--custom packge底下已經有了各種模型檔案。然而仍然有相同的報錯。內容為:錯誤程式碼+

 Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/...我這個是Assets/Standard Assets/
底下Characters檔案報錯,試著匯入標準資源Characters,錯誤還是未消除。發現Standard Assets存在不同版本,最終找到匹配的Characters,從外部匯入,消除錯誤。 參考:http://bbs.cgwell.com/thread-13192-1-1.html 其他報錯檔案專案類似處理。