2019.2.17f1 - Problem with creating TestMesh Pro buttons on a scene that already contains a canvas

… but the EventSytem game object is not automatically created with the buttons as it was in the past. The created buttons do not work without it.

Easy to reproduce.

I guess this has been reported before but I couldn’t find anything.

Search: Search - Unity

In which version of Unity are you observing this behavior?

Can you provide the steps to reproduce this issue?

Uh, you didn’t read the title? No, I didn’t just modify it.

How to reproduce? Create a button, configure it like on the image below and see if it works without the EventSystem game object. It doesn’t for me and I have tried many times, including creating new buttons from scratch.

The EventSystem is automatically added when a Canvas is created.

The EventSystem is a required component for buttons and the likes.

P.S. Looking into the not added part right now.

So it seems.

I don’t know what’s happened but it wasn’t when I created my buttons. I had a canvas on the scene that for some reason didn’t have an EventSystem object and apparently Texts do not need event systems because mine worked fine.

When I created the buttons, the missing event system game object was not created although it was missing.

I can confirm this behaviour. I already have a canvas on my scene; I wanted to create another UI independent of the existing one. To do so:

  • I created a new empty game object,
  • inside that empty game object, I added a UI image: a new canvas was created but the event manager was not (not a problem here),
  • I then added a TestMesh Pro button: the event manager was not created and the button is inert (which is normal since the event manager is missing),
  • adding a new event manager doesn’t work because there is already one on the scene; I had to duplicate the existing object and move it to the new Ui so that my new button works.