How does attaching scripts to game objects in the Editor work?

Hey all, quick question from someone moving to Babylon from Unity:

Attaching scripts to game objects in the Babylon Editor is straightforward.

However, how does do these scripts execute/exist after scene generation (during execution)? Specifically, how would you do it programmatically?

Is it just attaching all the class methods within the class the script exports to the game object (mesh, transformnode) then attaching the “onUpdate” method to the render loop?

Any information would be really helpful. Please let me know if I’m being too vague.

cc @julien-moreau

1 Like

bump @julien-moreau for visibility