OnNetworkSpawn not working - Netcode with Game Objects

Hi,

I have a problem using Netcode.

Here is my player prefab:

The components from Unit to Inventory Update all have a OnNetworkSpawn method, but it isn’t called. For test reasons i added this code for testing:

public override void OnNetworkSpawn()
        {
            Debug.Log("NETWORK SPAWN CALLED");
        }

I also added the same for the Awake method. The Awake method is called but the OnNetworkSpawn one is never called.

All the Scripts inherit from NetworkBehaviour

The player prefab is added to the network prefabs

207648-bugrep2.png.jpeg

Can someone help me ?