🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗
Click here to enter!
Edit: to be clear I'm talking about the one that's still active not the recycled one i.e. if a turret is being recycled and is going to swap with a projectile, then you only need to move the projectile data into the slot as well as the stageID of the projectile the turret was in because the left over turret data is never going to be accessed because it's in the wrong stage to use it (this creates a lot of "junk" in the memory but no memory leaks, just makes it look a bit weird)
You can do it the lazy way by recycling all the data, (also makes bugs easier to avoid if you mess up) but if you have a lot it can be more efficient to split the recycling process into IF statements based on what the StageID is of the object that's going to be moved