Hi everyone,
So for my aforementioned 2D game earlier and the accompanying 100 gameobjects, I was looking into object pooling, but found some lines would have to be added into where you want to spawn objects.
Is this something I can integrate into AC?
It was this https://assetstore.unity.com/packages/3d/characters/autopool-82528
From this tutorial https://mobfarmgames.weebly.com/tutorials1.html
Anyone know if its possible? Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If you're using pooling to handle object presence, I expect it'd replace any Object: Add or remove Actions and Remember Transform components from AC that handle an object's presence in the scene.
Custom code would have to be used to replace those, but you should be able to run it alongside AC - I don't expect it'd be a case of having to edit AC's code itself.
I recommend getting things working without AC first - i.e. getting the spawning / removal working on its own, and then see about bringing it into your AC scene.
Hi Chris,
Already got it working with AC, but there's quite significant lag on mobile which is why i was looking into object pooling. How would I go about replacing the code? Is it something on the scripting guide?
It depends on what exactly you want to do and replace. I assume you're looking to both spawn and remove things at runtime? What about save data?
Again, I recommend getting things working the way you want in a non-AC scene. We can then see about merging the two together.