marijnz / unity-toolbar-extender

Extend the Unity Toolbar with your own Editor UI code.
MIT License
1.67k stars 168 forks source link

Doesn't work with Button on 2021.1.15f1 #25

Closed Sygan closed 3 years ago

Sygan commented 3 years ago

I've updated my project to version 2021.1.15f1 and for some reason, it is not returning true when I press the button.

I'm using it like this:

var test = GUILayout.Button("Test");

The test is always false. Additionally, it looks like it's constantly active.

image

Any idea how to fix it?

Sygan commented 3 years ago

Alright. stupid me.

I've looked on the files, haven't seen that there was an update to the code so I've decided to write the Issue. Then I looked again and saw that there is a fix already and I'm just blind. After updating the code it now works again.