Access Scene File Not Assigned in Project

So, as a solution to a problem of making user maps accessible to others in this multiplayer game, I want to simply save the level as a scene.

Each user has their own one map named after their unique user id. I don’t know how to access the scene without it being registered in the project build settings.

Is there a way, and how would you go about doing it?

I’d serialize out their level information (wall here, enemy there) in some easy to read format and have a generic scene that can build any level based off of the serialized information.

Do you have any tips or know of any resources that would point me to the best way to go about serializing things like that?

Could you describe your game a bit more? 2D/3D? How objects are placed in the level by the player?

I’ll try to direct the help best I can after that.

It’s 2D. If you’ve played Clash of Clans, it’s a good comparison. They will be able to place their stuff on their map and attack the map of other players. They’ll move them around on a grid and can’t place anything in the same place as something else.

Here’s some helpful links: Official Unity manual entry, a helpful forum thread, and some code from the community wiki.

Honestly though, this seems like a very straight forward problem. Create a list of your buildings and record their position and state (health? production %? whatever is relevant for the multiplayer aspect). Hand that information off to the generic scene and let it rebuild the game view.

1 Like

I was pretty unfamiliar with serialization, I’ve always just used playerprefs in the past. :slight_smile:

Thank you for the links, I’ll be reading up on them and I do believe this should do it for me!