Skip to content

Scene Reference serialization #26

Closed Answered by starikcetin
Rava4U asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I think I understand what you are trying to do. I will test myself to see what problems binary serialization would have. As a sidenote, to prevent confusion, this is not the binary serialization of Unity, this is your custom binary serialization solution.

In the meantime, however, I think you have a much more elegant way to tackle this issue. Instead of serializing the whole SceneReference to your save file, you can just serialize the GUID of the scene. You can get it via mySceneReference.AssetGuidHex. Then, in the runtime, you can access the scene GUID to scene path map directly, and load the scene from its path.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Rava4U
Comment options

Comment options

You must be logged in to vote
2 replies
@Rava4U
Comment options

@starikcetin
Comment options

Answer selected by Rava4U
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants