playMaker

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

jasperPT

  • Full Member
  • ***
  • Posts: 115
  • I am a VFX Animator teaching myself to make games
Using Easy Save to save Prefabs/Game Objects
« 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?

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Using Easy Save to save Prefabs/Game Objects
« Reply #1 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.
Available for Playmaker work