Quantcast
Viewing all articles
Browse latest Browse all 3656

(Project included) Strange inconsistent behaviour, enabling MBS timers in array after loading from main code vs a thread

Hello me again… different issue, that I have tried to demonstrate in projects below. Only tested on windows.

TimersInArray_Project1.zip (8.7 KB)

In the project. if I press button A, then C… MBS timers work (only 4 timers, nothing to do with amount of timers)… so far so good.

But if I (clear arrays) and press button B then C the timers don’t enable. The difference being is that A puts the timers in an array in the normal code, and B puts the timers in an array using a thread. The enable script is the same for both (button C). The inspector debugger shows that the timers are loaded into the array in each case.

Why does the enable timer script care how the timers are loaded into the array?
It’s just seems strange? I have a different test project that seems to work, even though there is nothing really different about it. I just cannot get consistent results. The main app I am working on, some timers enable work and some don’t in the enable script (but fine if not loaded into array NOT using a thread), the debugger is showing that it is hitting the enable timer line perfectly, and then showing ‘enable = yes’ in the inspector… but nothing happens (though it does - if loaded not using a thread). Is there something really obvious I am missing here?

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3656

Trending Articles