Answers for "unity parse string to enum"

C#
1

unity parse string to enum

YourEnumType parsed_enum = (YourEnumType)System.Enum.Parse( typeof(YourEnumType), your_string );
Posted by: Guest on March-30-2021
1

unity parse string to enum

YourEnumType yourEnum = (YourEnumType) System.Enum.Parse (typeof (YourEnumType), yourString);
Posted by: Guest on March-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language