Hello,
I am trying to add in NetworkManager a prefab in the Registered Spawnable Prefabs list, but when I add the prefab this appears like (clone), and in client side the prefab it isn't spawn and an error is throw.
Here is my code:
[SOLVED] Add prefab to "Registered Spawnable Prefabs" list via script not working well
I am trying to add in NetworkManager a prefab in the Registered Spawnable Prefabs list, but when I add the prefab this appears like (clone), and in client side the prefab it isn't spawn and an error is throw.
Here is my code:
Code (CSharp):
- using UnityEngine;
- using UnityEngine.Networking;
- using System.Collections;
- public class EmptyPlayer : NetworkBehaviour {
- public GameObject playerObj;
- public override void OnStartLocalPlayer()
- {
- {...