MarkM
September 27, 2020, 2:23am
1
PG here Babylon.js Playground
Adding code straight from the docs as follows generates an error that says setTimerAndStart is not a function.
See Handle Events with Observables - Babylon.js Documentation
and https://doc.babylonjs.com/api/globals#setandstarttimer
Also changing it to BABYLON.setAndStartTimer does not work either.
Apparently this was added in 4.2 but does not seem to work as described. Is this functionality available?
Pinging @RaananW who wrote the function.
It seems the function is not exported, so it is not available for end user…
RaananW
September 28, 2020, 6:19am
3
The function is exported in code, I’ll need to find what changed since the implementation.
Will take care of this, thanks for reporting! Both this and the wrong naming in the docs
The function itself is exported indeed but I meant timer.ts
is not exported from index.ts
.
1 Like
RaananW
September 28, 2020, 9:15am
5
Yep, i did notice that as well, but it was exported, as this has worked in the past
I just want to be sure what happened. But yes, this is the quick and correct fix