Unity preview code Chinese garbled solution

There are Chinese characters in the code edited with VS, and Chinese characters will be displayed as garbled characters when previewed in Unity

 

Here is a one-and-done solution: installing the following plug-ins in VS can solve this problem

 Restart VS after installation, and the Chinese content edited later can be displayed normally;

Note: The Chinese in the script before the plug-in is installed may still be garbled. After re-editing the garbled Chinese content, it can be displayed normally in Unity.

Guess you like

Origin blog.csdn.net/m0_37640877/article/details/126367195