Sorry to jkump in here, but if you placed them in the scene already, he wrote a script that saves their state and destroyed them on load on this post
https://moodkie.com/forum/viewtopic.php ... tive#p9124
I modified it a bit for my use, but it works as is. (Just place it on the object in the scene, NOT the prefab in assets)
Loading game objects from the structure
Re: Loading game objects from the structure
Thanks for the response I believe the objects the OP want removed are generated at runtime, but if they're not then Notso's link will indeed be usefulNotso wrote: ↑Sat Jan 27, 2024 4:05 pm Sorry to jkump in here, but if you placed them in the scene already, he wrote a script that saves their state and destroyed them on load on this post
https://moodkie.com/forum/viewtopic.php ... tive#p9124
I modified it a bit for my use, but it works as is. (Just place it on the object in the scene, NOT the prefab in assets)
All the best,
Joel