|
Post by christoph on Jul 3, 2023 16:09:11 GMT
So this is a weird problem, but I recently updated to Unity 2022 and when I updated I had this problem for the first time.
PoolBoss Manager lost several references to prefabs and I had to manually re-add them one by one. I use Playmaker and some of the spawn actions lost those prefabs too. Afterwards all was good and working.
Now several days after, I built for the 20x time for iOS and for some reason it broke again. PoolBoss actually now not even showing up really in the inspector:
Now not only the prefabs are gone (missing transform) but even the poolboss entries are all gone and the component is non-functional.
What is this about and why is it happening?
I'm using the latest PoolBoss version from the package manager.
Any help is appreciated.
|
|
|
Post by DarkTonic Dev on Jul 3, 2023 17:24:22 GMT
Haven't heard about this issue. Luckily it's easily fixed by re-dragging in the prefabs. If it's a side effect of prefab changes in Unity versions, I don't believe there's any way we could fix it though. I would suggest rolling back to the last working version using your source control if it happens again. Or re-importing the whole project.
|
|
|
Post by christoph on Jul 3, 2023 19:22:46 GMT
Re-adding the prefab actually doesn't work either. It still is broken.
What I did now is I completely deleted Pool Boss, re-added it from package manager, made a new prefab out of the original one and re-added all my prefabs to this new pool. Now it's working again. I just hope it doesn't break again...?
|
|
|
Post by christoph on Jul 3, 2023 20:26:19 GMT
Actually, exported and it happened again.
|
|
|
Post by DarkTonic Dev on Jul 3, 2023 22:15:26 GMT
What exactly are you doing when you export? List the steps.
|
|
|
Post by christoph on Jul 3, 2023 22:20:48 GMT
What exactly are you doing when you export? List the steps. I think the problem is Playmaker. Not 100% sure yet. But when I export it seems Playmaker changes the ID for some reason that then corrupts pool boss. Or maybe it's Unity 2022 clashing with Playmaker. I don't do anything special. Just simply hit the 'build' button on the Build Settings window and let it run. Everything exports as normal and seemingly no errors happen. But when I then go into playmode the errors pop up due to the prefab ID change and the pool boss editor becomes entirely unresponsive.
This is how the prefab looks like when changed (from Github Desktop):
And that list goes on and on, it's huge.
|
|
|
Post by DarkTonic Dev on Jul 4, 2023 15:22:36 GMT
I don't see how Playmaker would mess up the Pool Boss prefab. Sure, it could mess up its own Pool Boss Custom Actions. You can send me a project to try building in Unity and see if it happens for me.
|
|
|
Post by christoph on Jul 7, 2023 17:27:51 GMT
So I went through the last 3 playmaker versions until I got back to the one I was coming from. Unfortunately it still happens even with that version. The other thing I updated was Unity (from 2021 to 2022) so I reverted back as well to 2021 and yes, issues are gone. It's either a Unity 2022 problem or Playmaker clashing with Unity 2022 for some reason. I believe the latter, otherwise many more people would experience the problem without playmaker too. I still might need more testing to be 100% sure, but I already exported several times on both, android and iOS and the problem didn't appear anymore. I also changed several Playmaker FSMs on those prefabs previously affected and the problem didn't happen either. So looking really good. Waiting for an official reply in the Playmaker forum for the moment.
|
|
|
Post by DarkTonic Dev on Jul 7, 2023 19:58:27 GMT
So weird. Let me know what else you figure out.
|
|
|
Post by christoph on Jul 12, 2023 1:24:46 GMT
Other Playmaker users confirmed to have the same problem with other pooling assets. It seems indeed that it's Playmaker changing the prefab IDs for some reason in Unity 2022. Will report back once we have a Playmaker update that is working.
For now the solution is to not update to Unity 2022 and use Unity 2021 LTS instead.
|
|
|
Post by DarkTonic Dev on Jul 12, 2023 2:23:47 GMT
Ok, thank you. That's weird.
|
|
|
Post by christoph on Aug 16, 2023 20:00:46 GMT
|
|
|
Post by DarkTonic Dev on Aug 16, 2023 21:42:39 GMT
Thank you for letting us know. Was it fixed?
|
|
|
Post by christoph on Aug 17, 2023 7:46:46 GMT
According to the link I posted above yes. I’m just back from traveling so couldn’t test myself though.
|
|
|
Post by DarkTonic Dev on Aug 17, 2023 13:07:49 GMT
Thank you.
|
|