Pryme8 Posted August 10, 2017 Share Posted August 10, 2017 So I am doing some examples for an article I am writing, but I want to hide the elements of the playground I dont want... mainly the ability to save/run and toggle the editor well the whole top bar really. Currently I am using (document.getElementById('editorButton1600')).click(); (document.querySelector('.navbar.navBar1600.light')).style.display = 'none'; But there has to be a better way? You can get the link to the playground here: http://pryme8.com/cellular-automata-algorithms-part-1/ Quote Link to comment Share on other sites More sharing options...
davrous Posted August 10, 2017 Share Posted August 10, 2017 Yes, there is a better way: https://www.babylonjs-playground.com/frame.html#JERN9V Just using frame.html before the ID of the PG. David Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 10, 2017 Author Share Posted August 10, 2017 I've noticed the reload link does not work correctly! How would I go about fixing that? Quote Link to comment Share on other sites More sharing options...
davrous Posted August 10, 2017 Share Posted August 10, 2017 what doesn't work? It works on my side, using Chrome and Edge. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 10, 2017 Author Share Posted August 10, 2017 When I click the reload it does not carry the Identifier for the scene with it and changes the url to https://www.babylonjs-playground.com/frame.html# I am using chrome in private mode. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 10, 2017 Share Posted August 10, 2017 Even without carrying the id, it still works thanks to this guy: https://github.com/BabylonJS/Babylon.js/blob/master/Playground/frame.js#L144 Pryme8 1 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.