I have a DDOL UI Manager on each player, with a reference to every canvas. These references go missing when the game restarts with this method
[Command(requiresAuthority =false)]
private void CmdRestartGame()
{
Debug.Log("Changing scene to game again");
NetworkManager.singleton.ServerChangeScene("GameScene");
}
I can't make this a prefab with the canvases as children as it's DDOL, and it needs the NetworkIdentity as it has some networking code inside (though, the UI isn't networked)
Not really sure what to do with this, I could get all references on runtime but it seems like a pretty big hassle, especially if this will be the same with future scripts.