- Home /
How to use Network variables (MLAPI) across two different applications?
I am using MLAPI to create a client-server RPCs. I have a server script something like this Server.cs
[ServerRpc] void playVideoServerRpc() { StartCoroutine(VideoPlayCoroutine(videoClipName.Value)); }
And Client Script client.cs
public class ClientService : MonoBehaviour { public NetworkVariableString current_video = new NetworkVariableString("....");
[ClientRpc]
public void SetVideoName(string video_name)
{
current_video.Value = video_name;
}
}
I want to synchronize NetworkVariableString current_video. The client and server scripts are in different applications.
I have renamed method SetVideoName to SetVideoClientRpc according to MLAPI (0.1.0) convention.
Your answer
Follow this Question
Related Questions
I need help with NetworkManager 0 Answers
Failure generating network code 1 Answer
Unity dedicated server for validating data and handling data from many clients 2 Answers
Collision Between Clients not working 1 Answer
Unity networking tutorial? 6 Answers