NetworkConfig.NetworkPrefabs now internal?

Hi!

I finally got around to upgrading from MLAPI to Netcode 1.0 and was curious about the change to make NetworkConfig.NetworkPrefabs internal?

I’m modifying this list at load time because I have a database of objects (currently “hundreds” of objects, expecting “thousands”) that are all network prefabs, and I definitely don’t want to have to go manually add them in the editor.

I’m wondering if there’s a different way to approach this? Ideally, I’d be able to loop over all of the objects in my database and add them to this list at build time, but I haven’t really found a good way to do that now that NetworkConfig.NetworkPrefabs is internal.

Thoughts?

Thanks!

1 Like

There is currently no way to add prefabs at runtime unfortunately. We’re looking at adding this option back for the next release.

1 Like

Groovy, thank you! I ended up adding all of the ~350 objects I have manually, not the end of the world, but I am expecting thousands more so I’m looking forward to this :smile:

Thanks again!