在Unity3D新脚本中将UTF-8设置为默认值? [英] UTF-8 as default in Unity3D new script?

查看:921
本文介绍了在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.

这篇关于在Unity3D新脚本中将UTF-8设置为默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆