Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Changing a material on a character

$
0
0
Sorry if the answer is simple, I am very new to networking.

So far I have my game working well, I am using OnPhotonSerializeView to update the position, rotation and animations of my character. I am using an RPC to make a sword strike animation play. This all works OK across the network. But I am trying to make my character customisable and have started by trying to change the hair colour. I have 5 different hair materials and using a keypress I swap which material is applied to the hair. This works fine on the local player, but over the network it only changes the controllable characters hair, not the network character.

I have tried lots of different ways to do this, but still have had no success. If someone can suggest how I would go about this, I would really appreciate it.

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>