Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Access to NetworkPrefabs inside the NetworkManager

Discussion in 'Netcode for GameObjects' started by itisMarcii_, Jul 1, 2022.

  1. itisMarcii_

    itisMarcii_

    Joined:
    Apr 5, 2022
    Posts:
    111
    Hey,

    is there a way to get the Prefabs inside the NetworkManager NetworkPrefabs? Or at least the GlobalHashCode?

    It seems kinda weird to create an extra Array/List that holds the Prefabs that already are declared inside the NetworkManager, just to spawn/instantiate an NetworkObject.
     
    modaka-cov likes this.
  2. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    115