- Home /
Procedureal scripting in unity
My question is this Would it even be possible to incorporate realtime scripting so that players can mod/create their world through code If not is there a game engine out there that can allow for this
What if the game recompiled the script written and the existing scripts when you saved your code in the came
One workable option is to have a front end text editor as part of the game. You'd then need a text parser to scan the text. You then look at what commands the player has requested and use the data as parameters to functions within the real code base. The real code base would then generate the models procedurally as required.
Could this be done with eval() and the new II text field ?
There are plenty of games that allow this. One strategy is building a text editor. Another is to use Unity itself to make the mods/scripts, and allow users to load them in from there.
Answer by meat5000 · Nov 28, 2014 at 04:59 PM
You could use dlls and background loading to read from separate packages provided they were pre-compiled I guess [citation needed] :D
Games introduce content via updates and usually require re-loading. Not really seen it but doesn't second life allow something similar?
I did have an idea of making a Unity Editor Add-on that allowed you to visit someone's game design 'Universe'. The first step would be shared workspace, then multiplying on that. Complications would ultimately mean that restrictions are apparent and individuals are ultimately isolated.