I had a quick query regarding updating player objects over the network.
Current situation:
I have a database of items, each of these items has a relating prefab to use as a game object. I would like the player to equip these items. I have this setup and working correctly. The issue I am having is the item is not syncing between clients.
Each Player has a child object called Player_Hand where the item is being instantiated.
I had some success having the items already existing on the player hand object in a disabled state - Enabling them when required. This felt like a very inefficient method.
Would anyone have any suggestions on how to best handle item equipping and switching?
Currently in my game I am also having them all disabled and enabling them if equiped. Otherwise you would have to Spawn them over across all clients. Just send a command to the server. And in that command you send a rpc (message to all clients) to spawn it in.