Advanced Timer - function does not run

Hi, I’m trying to get an advanced timer to run a function that I add to the onTimerEndedObservable.

See this playground:

I’m not sure why the function does not fire.
I pretty much copied what is written in the doc here:

What am I missing?

1 Like

The timeout option is currently being ignored by AdvancedTimer’s constructor. This PR will fix the issue but in the meantime you can use the timeToEnd parameter of the start method instead. :slight_smile:


Thanks for the quick reply, temporary solution and PR :slight_smile:

1 Like