#IF GDIO using UnityEngine; public class NewAgent : MonoBehaviour { GameObject agentObject = null; gdio.unity_agent.GDIOAgent agent = null; public int port = 19935; // This can be used to change the listening port of the agent after startup. See below. void Awake() { agentObject = new GameObject("TestAgent"); agent = agentObject.AddComponent(); // This will restart the GDIOAgent under a new listening port. This change will be reflected in the editor console log. agent.ReconfigurePort(port); } } #endif