Revert "SWT: port changed to Port, WebGL Platform handling"

This reverts commit 75951df2e5.
This commit is contained in:
MrGadget1024 2023-11-26 11:00:03 -05:00
parent 75951df2e5
commit e72f85e640
2 changed files with 3 additions and 22 deletions

View File

@ -46,7 +46,7 @@ void DrawPortSettings(Rect position, SerializedProperty property)
if (portOption == WebsocketPortOption.MatchWebpageProtocol)
port = swt.clientUseWss ? 443 : 80;
else
port = swt.Port;
port = swt.port;
GUI.enabled = false;
EditorGUI.IntField(position, new GUIContent("Client Port"), port);

View File

@ -50,28 +50,9 @@ public class SimpleWebTransport : Transport, PortTransport
[Header("Server settings")]
ushort port = 7778;
[Tooltip("Port to use for server")]
public ushort Port
{
get
{
#if UNITY_WEBGL
return clientWebsocketSettings.CustomClientPort;
#else
return port;
#endif
}
set
{
#if UNITY_WEBGL
clientWebsocketSettings.CustomClientPort = value;
#else
port = value;
#endif
}
}
public ushort port = 7778;
public ushort Port { get => port; set => port = value; }
[Tooltip("Groups messages in queue before calling Stream.Send")]
public bool batchSend = true;