I have a stack that I use as an Inventory filled with strings. Now I want to have an Object spawned.
Lets say I have around 100 possible objects I want to spawn, that means I dont want to have 100 serialized fields and drag in 100 objects into my spawn script.
Every spawnable object has to be registered, so I thought there is maybe a way to get the gameobjects from the NetworkManager.
Im looking for a command that goes roughly like this:
GameObject Object = NetworkManager.GiveMeAGameobject(string ObjectName );
Does Something like this exist? If not how can I access the spawnable perfabs? I dont want to drag in 100 objects into everysingle script that needs them.