2021
02-24
02-24
Unity实现枚举类型中文显示
Unity脚本中枚举类型在inspector面板中文显示,供大家参考,具体内容如下效果:工具脚本:ChineseEnumTool.csusingSystem;usingUnityEngine;#ifUNITY_EDITORusingUnityEditor;usingSystem.Reflection;usingSystem.Text.RegularExpressions;#endif///<summary>///设置枚举名称///</summary>#ifUNITY_EDITOR[AttributeUsage(AttributeTargets.Field)]#endifpublicclassEnumAttirbute:PropertyAttribute{///<summary...
继续阅读 >