playMaker

Author Topic: Using Easy Save to save Prefabs/Game Objects  (Read 48 times)

jasperPT

  • Full Member
  • ***
  • Posts: 101
  • I am a VFX Animator teaching myself to make games
    • View Profile
Using Easy Save to save Prefabs/Game Objects
« on: November 05, 2017, 02: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?

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Using Easy Save to save Prefabs/Game Objects
« Reply #1 on: November 05, 2017, 03: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.