UTF-8 as default in Unity3D new script?

青春壹個敷衍的年華 提交于 2019-12-11 01:25:04

问题


I'm from Brazil, and here we use special characters, like "é á í ..." and so on. I'm using Unity3D and MonoDevelop to program.

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.

Is there a way to fix it, so every new script will be a default UTF-8 ??

thanks in advance.


回答1:


This might work:

The files that Unity uses when it creates new script files are found in Program Files (x86)\Unity\Editor\Data\Resources\ScriptTemplates

If you open and re-save them as UTF-8 then hopefully all future scripts created in Unity would keep the formatting.



来源:https://stackoverflow.com/questions/19428068/utf-8-as-default-in-unity3d-new-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!