Networking Improvements

I just wanted to point out that when adding the playModeStateChanged event, there is also a playmodeStateChanged field that is identical in name other than a lowercase M that if selected, can throw you for a loop!
Here is the one you do NOT want:


Here is the one you DO want:

At first Visual Studio wanted me to add “Obsolete” to my method and didn’t give me the PlayModeStateChange parameter so I was super confused for a minute until I realized there were two almost identical named items. Just be sure to grab the correct one and you’ll be fine!

Thanks!

Julian Boardman

2 Likes

Thanks for the heads up Jullian! If one is obsolete, that would explain why Unity was comfortable giving the new one such a similar name. Still seems like a strange choice though.

1 Like

Privacy & Terms