I’m making a game with a lot of items. Things like apples, clothing, and even scene props like trees and houses. I made it so that I have non-3D versions of each item. So when I click on the 3D apple, it disappears and a button labeled “apple” appears in my inventory.
To get this to happen, I needed a prefab of the model I wanted to instantiate to be linked to my player object.(who also has my inventory script)
So the question is, is this a good way to do things? I mean if I have 500 prefabs that are all linked to my player object and all of the prefabs are of the 3D counterparts to my inventory items, would it make my scene lag?
I don’t plan to allow there to be too many objects spawned at one time or even when I’m not spawning anything at all, I’m separating my world into parts and loading only the closest parts so that I can not have too many things at once. I’m just worried linking all the objects in the game to my player would be bad. I’m Also making multiple players in a games(online game) So I have considered making this “list” of objects a separate item that only gets loaded once, by the local player, for only the local player. Sorry for typing so much. I’m terrible with words. Thank you for reading! Any advice on this?