Jump to content

Editing runRenderLoop in Babylon Playground


Recommended Posts

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 () {



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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...