Generating Save Component and JSON on scene load

Announcements, support questions, and discussion for Quest Machine.
Post Reply
shortestyard57
Posts: 29
Joined: Fri Jun 02, 2023 8:31 am

Generating Save Component and JSON on scene load

Post by shortestyard57 »

For some reason that I have not been able to track down, when I change scenes I am getting a "Some objects were not cleaned up when closing the scene" error showing the save system as the issue. I am using Dialogue System with Quest Machine integrated into ORK Framework, and ORKs save system. The Save System object is not created when I run my first scene, only when I change scenes. Any idea what is causing this?

https://imgur.com/a/DYNGodq
User avatar
Tony Li
Posts: 20734
Joined: Thu Jul 18, 2013 1:27 pm

Re: Generating Save Component and JSON on scene load

Post by Tony Li »

Hi,

Add these two components to the Dialogue Manager GameObject:
  • Save System
  • PlayerPrefs Saved Game Data Storer (not used, but suppresses a warning message)
Make sure no other GameObjects have a Save System component.
shortestyard57
Posts: 29
Joined: Fri Jun 02, 2023 8:31 am

Re: Generating Save Component and JSON on scene load

Post by shortestyard57 »

that did it, thank you!
User avatar
Tony Li
Posts: 20734
Joined: Thu Jul 18, 2013 1:27 pm

Re: Generating Save Component and JSON on scene load

Post by Tony Li »

Glad to help!
Post Reply