Change Mesh across Network?
So, im making a Hide & Seek Game, and my Players are able to change into any objects (with the tag "Prop") which works on the client, but for the other Players im still the standard Mesh (in my case, the Capsule)
So how can I "render" Mesh changes across Network?
Thanks in advance!
Best Answer
-
A custom component with OnPhotonSerializeView could send an index of the mesh to use (you'd create a table of those, too).
You can send an RPC to everyone when a player changes into another object.
You could set a custom player property, which defines the look of each player. I think I would prefer this approach.
0
Answers
-
A custom component with OnPhotonSerializeView could send an index of the mesh to use (you'd create a table of those, too).
You can send an RPC to everyone when a player changes into another object.
You could set a custom player property, which defines the look of each player. I think I would prefer this approach.
0 -
Thanks for the Answer!
I thought about using a RPC but wasn't sure how to use it. I searched a bit and found out how it works and even found a Discussion which I didn't find earlier:
https://forum.photonengine.com/discussion/17771/pun-2-change-meshfilter-and-meshrenderer-with-rpc
Its working now, but still thanks for the answer!
0