[PUN] Photon Custom Properties - All Clients Fails to Change the Value
So I've got a fairly simple problem for a fairly simply question. All I'd like to do is save data to the room custom properties from all clients currently connected to a room. So far it seems as though both clients (master and not) are writing to custom properties, but neither of them seem to be communicating the custom properties to each other. I've tried with using two built copies and the result is the same as if I try one built copy and the Unity editor. Photon's website says that non-master clients should be able to write to the room's custom properties, so I'm at a loss here. Any help would be appreciated!
Simple code I'm using to test:
(sendMultiplayerData is activated by a button)
Answer by Captain_Pineapple · Mar 27, 2020 at 12:26 PM
Not completly sure why this does not work but either way your approach seems like it's prune to fail at some point.
I'd strongly suggest you try diffrent solutions like using either the scene auto sync functionality, an Event or just an rpc to communicate a scene change
Answer by macozkal · Sep 17, 2021 at 11:41 AM
CustomProperties does not change immedeitly in both clients. So maybe you can solve your problems put some delays between tasks like this;
System.Threading.Thread.Sleep(200);,CustomProperties does not change immedeitly in both clients. So maybe you can solve your problems put some delays between tasks like this;
System.Threading.Thread.Sleep(200);
Your answer
Follow this Question
Related Questions
How to sync RPC function Photon Network? 1 Answer
Whats the best beginners tutorial for Photon Networking with Unity 2 Answers
Photon Voice chat and Speech to text plugin not working together 0 Answers
Multiplayer Variable System 0 Answers
Can i get names of some free LAN multiplayer assets?? 0 Answers