I am using a custom server and really need a way to spawn classes/objects dynamically based on information from the server. I am fine with doing this in either C++ or Blueprint scripting, I just need a good way to do it. I know in C++ you can reference Blueprint classes directly but this is frowned upon. Is there any other way to do something like this?
If you want something more robust than just sending the string name across the network and spawning it that way, you can make a data table with ids you’d store on the DB that has references to the corresponding blueprints, which you can store int he data table as actual blueprint references and spawn them that way. Otherwise you can just send the string of the blueprint you want to spawn and spawn it.
You’re probably making a bigger deal of the problem than it actually is, and that’s ok. Don’t be afraid of getting it working just sending the string of the blueprint reference and making it better later.