top of page

Day 42 - Sending messages through the network!

  • Writer: ayaan anand
    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.

Recent Posts

See All
Summary part 2

To get the other parts running such as the hands and animations follow this https://www.youtube.com/watch?v=VdT0zMcggTQ It will explain...

 
 
 
Day 62

Almost got VR working! I found a really good video that was quick and easy to follow, unfortunately due to my limited experiences with...

 
 
 

Comments


bottom of page