c# string转enum

c# string转enum

 enum= (枚举类型)Enum.Parse(typeof(枚举类型), 字符串);

你可能感兴趣的:(c#,Unity,c#,unity)