Day 42 - Sending messages through the network!
- ayaan anand
- May 17, 2022
- 1 min read
Thanks to Utsav who Dr Diefenbach referred me to I got sending messages working.
This is all the code I used nothing else


Among this I also had to attach a photon view script to the network manager in the Hierarchy.
Basically this is how the code works
The function ConnectToServer() tries connecting to the server by pinging the photon network.
OnConnectedToMaster() Makes the room for everyone to join and set the rules and the limit of the room
SentText() Makes it so that I can send text between devices
[PunRPC] is an attribute that enables remote calling
OnPlayerEnteredRoom lets the player spawn in
Next step for me is to make the text look better.
Comments