I am working on my project since morning , when i open my project later after work unity show me following error:
Assets\Main\Script\SettingScript.cs(1,1): error CS1056: Unexpected character '
To solve this problem i open my script and visual studio didn't open it and it show following error:
The document's format is either unsupported or the document contains binary characters, opening with a different application.
and vs open notepad but notepad is empty it doesn't show code neither on vscode.
This what it look like when i open script with HxD and sublime text editor
How can i fix this error?
Edited: I have solved my issue by updating my old script from my old backup but still need help for what is the cause of corrupted file