Harker
1
Hey
I am quite new with Unity and right now I am trying to create a gui to give the people playing my game the possibility to create their own server and change the roomname and portnumber.
But the TextFields I am using do not appear in my game window?
Here is the code I am using:
if(!Network.isClient && !Network.isServer)
{
if(GUI.Button(new Rect(100, 100, 250, 100), “Create Server”))
{
string Name = GUI.TextField(new Rect(400, 100, 250, 100), gameName, 25);
string Port = GUI.TextField(new Rect(400, 130, 250, 100), "25000", 5);
if(GUI.Button(new Rect(400, 200, 250, 100), "Start Server"))
{
PortNumber = int.Parse(Port);
gameName = Name;
StartServer();
}
}
Thank you very much for your help 
If the network is neither client nor server then what is it? You’re only showing the gui if it’s neither which doesn’t seem possible…