|
Post by DarkTonic Dev on Oct 30, 2020 4:07:31 GMT
Thanks for the video. The first problem I see is right at the beginning of the video. Your subtitle says "Game Starts" and I see that all 4 sections that spawned suddenly have no sub-game objects. I bet you have a script that removes or reparents children of the sections elsewhere? Anyway, that will create a problem when you need to respawn them "whole" because when they despawn, they will be back in the pool just like that, with no children, and will spawn like that next time. Unless you make sure you move your children back under it prior to despawning it.
Does that make sense and have to do with your problem?
|
|
|
Post by christoph on Oct 31, 2020 0:06:20 GMT
hmmm yes it kinda makes sense but I clearly don't get the logic of it. What seems to happen is that Easy Save recreates the level because the Array is saved and loaded back in. I don't quiet understand why it does this though since only the array is saved, nothing else.
So Pool Boss creates the prefabs in the pool as set up in the Pool Boss settings but Easy Save adds one more section to the scene. These get later picked up by Pool Boss and integrated into the pool automatically because the "poolable info" script is attached to those prefabs as well.
Maybe, just thinking out loud here, there should be a way that Pool Boss automatically resets the allowed number in the scene (at least inside the pool) because now even if I set the maximum allowed value of a section to - lets say - 2, after Easy Save adds another one, it's maximum value increases to 3 as you can see in the last screenshot I shared.
Anyways, I could solve the problem thanks to your input and appreciate your time and support.
|
|
|
Post by DarkTonic Dev on Oct 31, 2020 5:21:43 GMT
Ok, thanks for the explanation. Glad to assist.
|
|