• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

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
309
Solutions
1
Reactions
2,086
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