Fixed (1.20.1.5) UI Buttons take 2 clicks to register after merge load

Spacedog

Well-known member
Featured Contributor
Messages
227
Reactions
1,599
Points
93
Patreon
Spacedogvam
UI Buttons usually take 1 click to activate, but if you merge load the scene it takes 2 clicks.

Attached is a test scene to demonstrate. Load the scene and click the UIButton and it disappears as intended. Merge load the same scene and the first click doesn't register, it seems to select the button instead. It takes a 2nd click for it to register and disappear.
 

Attachments

  • button merge load click test.json
    63.1 KB · Views: 0
I have this fixed in upcoming 1.20.1.5 release. The issue is the button trigger was using a coroutine to turn the trigger back off a frame later to reset it. But if you turned the button atom off this coroutine was not allowed to start, leaving the trigger in the on state. This made it so the next click didn't do anything.

I have fixed to no longer use a coroutine as it was not necessary here.
 
Back
Top Bottom