- Home /
How do I fix error code cs1056: Unexpected Character
After updating some of my projects from 2018 to 2019.3.13f1 I have been experiencing the above error in the updated projects and ones that I made in 2019 using the hub. With the updated ones the editor claims that either attached scripts are missing or there is a compiler error but within visual studio there is no compiler errors and reimporting scripts doesn't work either. I have attached screenshots
[1]: /storage/temp/159001-annotation-2020-05-09-121817.png
Answer by arrnav · May 09, 2020 at 05:23 PM
Delete every folder in the project root except Assets and Project Settings, then let Unity re-import the entire project again slowly.
If issues still show up, you might have assets within the project which haven't been updated to support Unity 2019 (Typically, missing dependencies, the use of new Package Manager in 2019 which is missing in 2018 if I'm correct). In that case, you'll need to manually open your project with Unity 2018 and update every asset/plugin to the latest versions before re-importing with 2019 using the aforementioned steps.
moreso my issue is fresh projects in 2019 are unusable. as I intend on using some features new to that version. here is a screenshot of a project I just created. with the exact same error.
[1]: /storage/temp/159005-annotation-2020-05-09-123916.png
Your answer
Follow this Question
Related Questions
HELP C# scripts won't open after update 2020.1.4f1 !!!!! 1 Answer
Too many errors in the IDE (even for a fresh project), but editor doesn't throw any errors! 1 Answer
Check for compilation errors in Editor Script 0 Answers
Why I get this Debug error: 'fileLength == processed' when calling CreatePrefab? 0 Answers
Unity Editor Custom script 2 Answers