@spa3212 said in UI button to perform specific function:
I wonder if it is possible to have a Button on a UI interface. When click it perform a specific Call to function.
@samlol said in Call function not returning to main thread after finishing:
as the title says I call a function in my script but once that function is completed the script doesn't go back to the main thread instead it just stops. I think this might be a bug or does someone know why this would be happening?
Most likely you switch between functions using labels
Test script