在Unity3D新脚本中将UTF-8设置为默认值?
我来自巴西,在这里我们使用特殊字符,例如éáí..."等等. 我正在使用Unity3D和MonoDevelop进行编程.
I'm from Brazil, and here we use special characters, like "é á í ..." and so on. I'm using Unity3D and MonoDevelop to program.
但是很烦人,每次我使用其中一个特殊字符时,都必须在NOTEPAD中打开脚本并将其重新保存为UTF-8.只是将其重新保存在Monodevelop中是行不通的.
But is annoying, every time I use one of this special characters, I have to Open the script in NOTEPAD and re-save it as UTF-8. Just re-saving it in Monodevelop do not work.
是否有一种解决方法,所以每个新脚本都将是默认的UTF-8?
Is there a way to fix it, so every new script will be a default UTF-8 ??
提前谢谢.
此可能有效:
在程序文件(x86)\ Unity \ Editor \ Data \ Resources \ ScriptTemplates中找到Unity创建新脚本文件时使用的文件
The files that Unity uses when it creates new script files are found in Program Files (x86)\Unity\Editor\Data\Resources\ScriptTemplates
如果您打开它们并将其重新保存为UTF-8,那么希望将来在Unity中创建的所有脚本都将保留格式.
If you open and re-save them as UTF-8 then hopefully all future scripts created in Unity would keep the formatting.