Can't use world.time.clearInterval()

Trying to use world.time.clearInterval like so but it gives an error saying clearIntervaldoes not exist

This is done in side a state machine of a component, setTimeout and setInterval work fine, what is wrong with my code?

Hi! It should be world.time.clearTimeout, clearTimeout is used for both Intervals and Timeouts.

Hey! Thanks so much, that works perfectly! Just a heads-upβ€”it might be worth giving the documentation a quick update so future folks don’t run into the same problem I did :slight_smile: .

1 Like