[SOLVED]UNET Changing character classes during multiplayer game?

How do I change player prefab with the network manager during a live game? I want the user to be able to choose what class they want to play as like a Rogue, Mage, or Warrior. Then once the player dies they can choose a new class to spawn as.

The only closest examples of this mechanic I can find is people choosing a class in the lobby manager scene, but then once in game they are stuck with the player prefab for the rest of the match. I need to allow the player to dynamically change their player prefab during the game between response

How can I change the initial player prefab in the network manager during run time and sync it to the server for the other clients to see.

These folks are close :: but not quite there. Has anyone worked through this or have an idea. I’ve been searching up other documents and forums but nothing is hitting the nail on the head. Appreciate any and all help.

SOLVED: So after some jumping around managed to find a simple snippet of code to swap player prefabs.

Unity doc for replacing/swapping player prefab

send [Comman]d, which in turn does [ClientRPC], in this RPC destroy player prefab, create a new one, and give the same player local authority over it.