private object InvokeDrawer(Rect position, MightyMethod <object> drawerMethod, string signature, params object[] parameters) { if (drawerMethod != null) { return(drawerMethod.Invoke(parameters)); } MightyGUIUtilities.DrawHelpBox(position, $"The drawer callback is invalid, it should be like this: \"{signature}\""); return(null); }
private object InvokeDrawer(MightyMethod <object> drawerMethod, string signature, params object[] parameters) { if (drawerMethod != null) { return(drawerMethod.Invoke(parameters)); } EditorDrawUtility.DrawHelpBox($"Callback is invalid, it should be like this: \"{signature}\""); return(null); }