MackeyK24 Posted June 14, 2018 Share Posted June 14, 2018 How do I dynamically inject javascript in the playground... ??? Do I I just create document.createElemement("script") ... Are there any type of remote script loading or CORS that i need to be aware of when trying to dynamically inject script tags. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 14, 2018 Share Posted June 14, 2018 Yes you must use document.createElemement ('script') Quote Link to comment Share on other sites More sharing options...
Guest Posted June 14, 2018 Share Posted June 14, 2018 we also have a Tools.LoadScript: http://doc.babylonjs.com/api/classes/babylon.tools#loadscript Dad72 and babbleon 2 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.