- Home /
[PhotonNetwork] Share strings
(The title may not be specific but I tried)
Hi!
I have this game using Photon Network and want players to join maps and on server that players can create themselves. So what I mostly need is to make sure they join a level with some kind of string. So what I mostly need is to send a string over the network. If you know how to do this, please tell me!
Thanks
Answer by j_perker · Feb 21, 2014 at 10:51 PM
Use an rpc
When you want to send the string use this function call:
photonView.RPC("SendString", PhotonTargets.All, "string you want to send")
define the function with an [RPC] tag:
[RPC]
SendString(String doodookaka)
{
String recieved_string = doodookaka;
}
I'm not a master at photon yet, so this might be wrong but let me know if it works.
Your answer
Follow this Question
Related Questions
communication ovedr http 0 Answers
photon marco polo tutorial issue with "peercreated" 1 Answer
Photon username script 0 Answers
Rigidbody lag in Photon Cloud Networking. 1 Answer
How to create multyplayer npc? Tips? 0 Answers