Spawned Object issue [Solved]

Announcements, support questions, and discussion for Save System for Opsive Character Controllers.
Post Reply
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Spawned Object issue [Solved]

Post by nathanj »

Hi Tony,

[See second post]

Having an issue with my Spawned Objects.

I am able to save the scene once and load back in with the spanwed object loaded correctly but when I save again and enter the scene the object is no longer in the scene.

Image

Image

Can you think of anything that I could be doing wrong?

Thanks,
Nathan
Last edited by nathanj on Mon Sep 13, 2021 2:11 am, edited 1 time in total.
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: Spawned Object issue

Post by nathanj »

Edit,

It was that the Spawn Object Manager component was on my Dialogue Manager component (thus on a persistent object). Moving this to a game object in the scene that was not persistent resolved it. Just like it says in the manual:
Each scene should have its own Spawned Object Manager, and the Spawned Object Manager in each scene should have a unique key that's not used in other scenes.
Thanks again for such an awesome asset.

Nathan
User avatar
Tony Li
Posts: 22200
Joined: Thu Jul 18, 2013 1:27 pm

Re: Spawned Object issue [Solved]

Post by Tony Li »

Hi Nathan,

Remember to give each scene's SpawnedObjectManager a unique key (e.g., "Scene1Spawns", "Scene2Spawns", etc.).
Post Reply