Is there a similar event of registerAfterRender working with offscreen canvas?

I want to plug some code on each frames of a camera’s animation in the service worker, is it possible ?
My code is working in DOM client side, but not in worker because there is no render, so events like afterRender or onAfterAnimationsObservable doesn’t work, is there any other way ?

I am not entirely sure to get what you need ?

As long as you call scene.render() those observables should work

1 Like

Hello @devAxeon just checking in, was your question answered?

Hello,
Yes, sorry for not responding, just misunderstood how worker works, but just added scene.render() make it works fine !

2 Likes