WombatTurkey Posted February 20, 2016 Share Posted February 20, 2016 Hey guys! I'm messing around with Babylon and absolutely love it! I am using the Babylon editor here: http://babylonjs-playground.com/ I'm curious if it's possible to add code to the 'runRenderLoop' function Edit: I just added // Now, call the createScene function that you just finished creating var scene = createScene(); // Register a render loop to repeatedly render the scene engine.runRenderLoop(function () { scene.render(); }); to the bottom, and it works. Not sure if it's creating a new scene, or just overriding the existing runRenderLoop function, but this works for now! Haha. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 20, 2016 Share Posted February 20, 2016 scene.registerBeforeRender(() => { [code here ] }); WombatTurkey and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
WombatTurkey Posted February 20, 2016 Author Share Posted February 20, 2016 8 minutes ago, NasimiAsl said: scene.registerBeforeRender(() => { [code here ] }); Oh yes, this works as well. thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.