protected virtual void DrawMethodButtons() { MethodInfo[] methods = target.GetType().GetMethods(); if (methods.Length > 0) { EditorGUILayout.Space(); foreach (MethodInfo m in methods) { ButtonMethodAttribute attribute = QuickUtils.GetCustomAttribute <ButtonMethodAttribute>(m); if ((attribute != null) && DrawButton(m.Name)) { QuickUtils.Invoke(target, m.Name); OnButtonMethod(m.Name); } } } }