Ah yes perfect!
But one last issue. I've tried changing it to a ButtonUIElement rather than a ImageAndTextButtonUIElement because I don't need the image. And now the overridden ButtonClick method is never being called.
I don't understand why since they both stem from ButtonUIElementBaseā¦.
Any ideas why it randomly stopped being called?