The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to add a string to a player custom properties

shemtom
2021-11-11 17:51:19

I am trying to add a way for each player in the lobby to enter their certain text in an input field and later on an update to the player custom properties for each player. This was my code, unfortunately, I don't know how to call updates for the custom properties! I am really trying my best! Where did I go wrong?

Comments

XSpitFire
2021-11-29 15:58:33

Hey,

Maybe try to out a break point in the OnPlayerPropertiesUpdate and inspect the values coming in. Or add some debug messages.It looks like you just need to read the update values and do something with it.

This is from memory, so not sure it is correct and will compile. Have a look.

Back to top