Hi there I know it is possible to update code at runtime in Unity3d.
I run the game, change the code, save the script and the game updates itself.
**- However my question is: Is there is option or way how to do this without loosing all my saved variables? Thus breaking entire game after saving your code in runtime.**
Let`s say you initialize your variable when game starts, and load a texture to that variable.
Now you run the game, go to change your code (game is still running), make changes, save the code, but when game (recompiles) at runtime, it resets all the variables. Thus your saved texture will reset itself, causing critical errors and null references.
↧