How to unregisterBeforeRender?

I have a sphere which I can delete with the key “d” and recreate it with the key “c”

if I delete it the registration on BeforeRender is not stopped. The trail (which I not deleted for test reason) is still moving.

unregisterBeforeRender | Babylon.js Playground (babylonjs-playground.com)

Something like this - https://www.babylonjs-playground.com/#UK3QK6#2

2 Likes

Great Labris :blush: Now I can continue on creating a demo of my examples in one scene. Thank you.

1 Like