public static void RegisterPrefab(GameObject prefab) { NetworkScene.RegisterPrefab(prefab); }
public static void RegisterPrefab(GameObject prefab, SpawnDelegate spawnHandler, UnSpawnDelegate unspawnHandler) { NetworkScene.RegisterPrefab(prefab, spawnHandler, unspawnHandler); }
// this assigns the newAssetId to the prefab. This is for registering dynamically created game objects for already know assetIds. public static void RegisterPrefab(GameObject prefab, NetworkHash128 newAssetId) { NetworkScene.RegisterPrefab(prefab, newAssetId); }