Binary file path handling

Threw this together yesterday while refactoring some of our DOTS binary serialization stuff. We had way too many path references scattered about that were difficult to keep track of. So this is sort of a base we can use to get that under control.

It uses the C# special directory stuff for persistent data due to Application.PersistentDataPath not being thread safe.

2 Likes

Thanks for sharing @snacktime , I’m definitely going to use this!
I’m wondering if you might be able to share how you handle save games?
I’m up to this right now and I really could use some good examples of how to save and load entities, especially with netcode.