[C#]enumをint/stringにしたりint/stringからenumにしたり コメントをどうぞ [wp_ad_camp_1] できました。 enum test_enum{ zero,one,two,three,four} public void howToConvertEnumToAnything() { Debug.Log("to string :"+test_enum.one.ToString()); Debug.Log("to int :"+(int)test_enum.two); Debug.Log("from int :"+(test_enum)3); Debug.Log("from string :"+(test_enum)System.Enum.Parse(typeof(test_enum),"four")); } 参考 Stack over flow::Cast int to enum in C# Stack over flow::Get int value from enum Enum.Parse メソッド (Type, String)