Hi I have a small problem with a funccion. I need some help
public static void BuildContentEnum<T>(string label, string toolTip, SerializedProperty property)
{
EditorGUILayout.BeginHorizontal();
property.enumValueIndex = (T)EditorGUILayout.EnumPopup(BuildContentBasic(label, toolTip), (T)Enum.GetValues(typeof(T)).GetValue(property.enumValueIndex));
EditorGUILayout.EndHorizontal();
}
error CS1503: Argument
#2' cannot convert
T' expression to type `System.Enum'