using Unity I have an open world (infinite) which is proceduraly generated in chunks. In this world I want to proceduraly load objects/trees/grass by raycasting them around the player position and unload them when the player is far.
My questions are :
What is the most optimized way of loading/unloading large quantities of objects around a player ?
Since I'd like players to be able to interact/come back to objects, I'm thinking of using a blue noise seed to load objects, and unloading them by replacing them with an empty. Is that common practice ?
I've looked in a lot of places for ressources but couldn't find much, I'd really appreciate any kind of link to tutorials, videos, pseudo-code ideas and common practices for open worlds as I am not very experienced in video game design, but mildly familiar with code.