anedumgottil / VR-Mazmorra

Procedurally generated VR Dungeon
Apache License 2.0
1 stars 0 forks source link

Using the new TileGenerator in the editor will result in an unplayable state #35

Open apodgo2 opened 6 years ago

apodgo2 commented 6 years ago

If you turn on the TileGenerator inside the MapLoader class using the inspector, and run the game, it will modify prefabs which need to be reloaded. We cannot "refresh" prefabs without using an Asset Store, and saving/modifying prefab files at runtime isn't supported by the Unity Engine, so the changes don't propagate to the currently running game instance, and therefore the relation between prefabs and code does not exist anymore, which breaks the game.

apodgo2 commented 6 years ago

This isn't something that should be completely fixed, unless you have a lot of time to waste changing all of our assets into a runtime-modifyable asset database. So I think what would be best is to make the game simply exit once the generator has finished running, so that nobody could possibly think that they're working with a working scene after it runs...

I'll mark this as 'wontfix' and I'll close it after we get the game auto-close in. But this is not a high-priority ticket.