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

Set/read network variable? (SetCustomProperties)

$
0
0
Hi, I am trying to set a custom variable (player gender). Then when a new player is detected I will read from this network variable and activate the correct player group in the prefab clone. Can I set/get a variable with SetCustomProperties ? any example?
void FixedUpdate()
{
if (photonView.isMine)
{ 
//do nothing
} else {
//if their position is 0,0,0, move them to where they should be then..
//read the gender from custom properties before activation
}

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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