Hello. I am playing around with onBeforeRenderObservable on the Mesh, and I noticed that this method is called only if you are watching the box.
Here is the example
https://www.babylonjs-playground.com/#DGPUX4#3
Just turn the camera and the box will stop moving.
How can I force the call even if I am not watching the box?
Hi,
You can force the box to always be rendered, even if off-screen:
box.alwaysSelectAsActiveMesh = true;
If you don’t want that, you can just use the onBeforeRenderObservable
of scene
3 Likes