Hey! I want to send some data (a Vector3 for position to be precise), using a server on my PC, and setting up Unity Android app as a host which sends a request to my server, and gets a response.
using UnityEngine.Networking;
public class NetworkingBasic : NetworkManager {
// Initializing the Transport Layer with no arguments (default settings)
NetworkTransport.Init();
ConnectionConfig config = new ConnectionConfig();
int myReliableChannelId = config.AddChannel(QosType.Reliable);
HostTopology topology = new HostTopology(config,10);
int hostId = NetworkTransport.AddHost(topology, 8888);
connectionId = NetworkTransport.Connect(hostId,"0.0.0.0", 8888, 0, out NetworkError);
}
The documentation here doesn’t specify all the details and this code is showing errors on Line 6 and 11. Please help me out.