Manager gameobject destroyed on load

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

Manager gameobject destroyed on load

Post by shortestyard57 »

For some reason my Quest Machine manager gameobject is getting destroyed on run. I am integrating it with dialogue system and ORK framework. The dialogue system manager moves to DontDestroyOnLoad but the Quest Machine manager is not, instead getting destroyed. Here is my set up and error when I try and call the journal UI.

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

Re: Manager gameobject destroyed on load

Post by Tony Li »

Hi,

Only one GameObject should have an Input Device Manager component, and only one GameObject should have a Save System component. Your Dialogue Manager GameObject may already have both of those, so remove them from the Quest Machine GameObject.
shortestyard57
Posts: 29
Joined: Fri Jun 02, 2023 8:31 am

Re: Manager gameobject destroyed on load

Post by shortestyard57 »

Did the trick. Thanks for the quick support.
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Re: Manager gameobject destroyed on load

Post by Tony Li »

Glad to help!
Post Reply