UnityEngine.EnumInfo.CreateEnumInfoFromNativeEnum C# (CSharp) Method

CreateEnumInfoFromNativeEnum() private method

private CreateEnumInfoFromNativeEnum ( string names, int values, string annotations, bool isFlags ) : EnumInfo
names string
values int
annotations string
isFlags bool
return EnumInfo
        internal static EnumInfo CreateEnumInfoFromNativeEnum(string[] names, int[] values, string[] annotations, bool isFlags)
        {
            EnumInfo info = new EnumInfo {
                names = names,
                values = values,
                annotations = annotations,
                isFlags = isFlags,
                guiNames = new GUIContent[names.Length]
            };
            for (int i = 0; i < names.Length; i++)
            {
                info.guiNames[i] = new GUIContent(names[i], annotations[i]);
            }
            return info;
        }
    }