Set order for multiple `Object3D.onBeforeRender` events

Hi, I’m having a problem with Object3D.onBeforeRender.

The issue is that there are 2 objects (say A , B ) that update something in their onBeforeRender event but I need to make sure that A should always be updated before the B is.

Is there any way to specify the order of the events? Any help would be appreciated!

Sorry, I think I misunderstood how the event works, I thought onBeforeRender is called before the entire scene is rendered but it seems it is called before the specific object is rendered. So, it seems the order can be arranged by Object3D.renderOrder