• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

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

Spacedog

Well-known member
Featured Contributor
Joined
May 11, 2020
Messages
272
Solutions
1
Reactions
1,936
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