Can you build a sample app that does this, make sure to include a config.lua and build.settings and use the File a bug report link at the top of the page?
Can you build a sample app that does this, make sure to include a config.lua and build.settings and use the File a bug report link at the top of the page?
In my case, I have 7 buttons, all are associated with one same handler for the onPress event, and when I try to disable one of the buttons in the event callback, all buttons appear to be disabled with the button I pressed remains in the pressed state. And I can’t even quit the overlay scene I was in.
I suspected the bug related to the specific button state it is in, when I switched to use the onEvent event callback, and specifically check if the phase is already in “ended” phase before I disable the button, then it appears to work, so this is at least a workaround to the issue.
Sure enough, if I set the button to disable while in the began phase of the onEvent callback, the bug occurred again, so it has to be related to the button state.
Can you please file a bug report? It must have the build.settings and the config.lua that you are using. After you file it, you will get an email from the bug system that has the Bug # in. Please post it back here for a reference.
In my case, I have 7 buttons, all are associated with one same handler for the onPress event, and when I try to disable one of the buttons in the event callback, all buttons appear to be disabled with the button I pressed remains in the pressed state. And I can’t even quit the overlay scene I was in.
I suspected the bug related to the specific button state it is in, when I switched to use the onEvent event callback, and specifically check if the phase is already in “ended” phase before I disable the button, then it appears to work, so this is at least a workaround to the issue.
Sure enough, if I set the button to disable while in the began phase of the onEvent callback, the bug occurred again, so it has to be related to the button state.