Search found 14 matches

by Shockwolf
Fri Jul 14, 2017 11:06 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Thanks for clarifying, as usual it was me misinterpreting what you were saying :lol: :lol: Hahaha! That's Okay, I'm getting used this! :D // Remove prefab from createdPrefabs list, or throw error if it's not in list. if(!CreatedObjects.Remove(obj)) throw new System.Exception("Cannot destroy prefab:...
by Shockwolf
Fri Jul 14, 2017 8:54 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Okay, try this... Open up your "Creating an Automatic Save Structure" scene. * Drag one of the prefabs used in this demo into the scene. * Attach a new 3D Object to it (Parent it). * Click "Apply" to update the prefab. * Delete the prefab from the scene. *Now press "Play". *Wait for your Demo scene ...
by Shockwolf
Fri Jul 14, 2017 5:03 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Thanks, but it doesn't seem to work. I tried destroying the Child Objects both before and after calling the UniqueObjectManager.DestroyObject(this.gameObject); function and it still throws the same error and won't destroy the Parent Object Prefab that is supposed to be listed. I tried this: // Destr...
by Shockwolf
Thu Jul 13, 2017 11:29 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Thanks, I have another... I have realised that if I use this system to Instantiate an Object that already has other Objects Parented to it, this creates another problem. It instantiates fine with the Objects parented to it, however upon trying to delete it, I get this error... Exception: Cannot dest...
by Shockwolf
Thu Jul 06, 2017 6:51 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

OMG IT WORKS!!! Thank you so much Joel! :o :o :o :o :o :D :D :D :D :D
by Shockwolf
Thu Jul 06, 2017 12:40 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Yeah, thanks for that Joel, but I still don't think you understand what I am trying to tell you, so I've made a video... https://youtu.be/H_2BByyk6Qg And I just need to clarify that the data is always saved and loaded from the main game scene. No actual saving and loading occurs in the menu scene of...
by Shockwolf
Wed Jul 05, 2017 11:19 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Hi there, In the line you quoted, the only thing which could throw a NullReferenceException is if obj == null. Please could you PM me a link to a basic test project and some instructions so I can replicate this at my end? All the best, Joel Thanks heaps, I'll PM you when my project is done uploadin...
by Shockwolf
Wed Jul 05, 2017 10:47 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

It has something to do with loading between scenes. If I test it without changing scenes, it works. But when I start the game from my menu scene and it loads the main game scene, suddenly this is an issue and I don't get why. :?
by Shockwolf
Wed Jul 05, 2017 7:26 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Creating an Automatic Save Structure

Hi Mike, This error will occur because one of the GameObjects in the UniqueObjectManager.SceneObjects or UniqueObjectManager.CreatedObjects list has been destroyed. Before saving you will need to remove any destroyed GameObjects from these Lists. All the best, Joel That was my first thought, howeve...
by Shockwolf
Wed Jul 05, 2017 4:15 am
Forum: (Legacy) Easy Save 2 Examples and Tutorials
Topic: Creating an Automatic Save Structure
Replies: 24
Views: 71781

Re: Saving, Loading and Instantiating Prefabs

Hi Joel, Your whole example for "Creating an Automatic Save Structure" works great until it comes to manually saving and loading instead of On Start loading and OnApplicationQuit method. I shall explain the problem I am having and hopefully you can help me out, please... I don't want automatic saves...