Call a function when scene is completely loaded

Hello everybody,



I need to call a function to setup my external controller class when everything in jME is loaded, the scene and the character. Is there a way to detect this, something like the destroy() function for example, or should I implement a collision listener?



Thanks a lot

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_main_event_loop

Loading your scene is a blocking call. So when you load it in your update loop,or in the init method, the method will return and that means your scene is loaded. Call your external method after that.