- Home /
Can I run a script in real time on a browser game?
I would like to know if there is any way to have like 2 "icons" on a website page, one with the web player(the game) and another with lines of code. And as I change the code, the game is updating in real time, or at least through a button or something. Is it possible?Something like this:
Answer by Bunny83 · Jun 18, 2013 at 12:24 AM
All Unity players don't have a mono compiler included, so by default you can't change any of your code at runtime. The easiest way is to use a dynamic scripting language like LUA. One implementation is UniLUA which has been optimised for Unity.
Actually all I want is a way so I can run a script which I write on the website page and when I press PLAY or something to apply the script / modified script into the web player(game). Can you give a little more details of how I could do this please?
Yes, we all just want to build a fusion-reactor if possible within 3 days and made of paper and duct-tape.