Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jasperPT on November 05, 2017, 04:02:23 AM

Title: Using Easy Save to save Prefabs/Game Objects
Post by: jasperPT on November 05, 2017, 04:02:23 AM
Hi

I am trying to create an inventory system with Hash tables/Array Lists

The basics of what I need to do is store a list of the inventory somone has and save it.

I can't for the life of me figure out how to save anything with prefabs though.
I would prefer not to have to encode it as some sort of string and then decode it back to variables at runtime but it is looking like that is my only option.

Has anyone got any solutions to saving game objects or prefabs in a list and loading them?
Title: Re: Using Easy Save to save Prefabs/Game Objects
Post by: Fat Pug Studio on November 05, 2017, 05:43:58 AM
Keep inventory in hashtable, and save it in another when you're saving, the load from that one to inventory hashtable when loading.