Search Unity

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