Jump to content

[PG] Code Hot Swapping experiment


aWeirdo
 Share

Recommended Posts

Code "hot swapping" / auto-update experiment for babylon playground..
Discussion: 

 

Quote

All meshes, lights & cameras must have name's/id's set.
It will not update changes made to Mesh/Light/Camera creation strings.
It will not add or remove (by manual coding) Meshes/Lights/Cameras without re-running,
  (it will remove e.g. a mesh if you type mesh.dispose(), but not by simply deleting a mesh's creation string)

-Added updateXXXX variables ( lines 35, 36, 37 ), disabled updateCameras by default (setTarget issues)

 

What does it do?
Change a property in the editor like light.intensity from '1' to '.5' and see the results without having to click run and resetting the scene.


Current Rev: http://playground.babylonjs.com/#TY8HCN#7

Bugs are expected. :P 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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