Ответ: Вопросы от новичка
public static void DrawEnums<T>(T val)where T : struct, IConvertible{
EditorGUILayout.EnumPopup((T) Enum.Parse( typeof( T ), val.ToString(), true ));
}
Argument `#1' cannot convert `T' expression to type `System.Enum'
Какая-то через-*опщина
__________________
Intel Core i3-4005U (1.7 ГГц), 4 ГБ ОЗУ, nVidia GeForce 940M 4 ГБ, Win8.1
|