void Start() { List <string> IPs = (IPManager.GetAllIPs(IPManager.ADDRESSFAM.IPv4, true)); foreach (string ip in IPs) { Debug.Log(ip); } link = new SimpleUDPListener(port, acceptMulticast); link.DataReceived += Link_DataReceived; }
void InitIpList() { textEditor = new TextEditor(); //ipEntryRef.SetActive(false); List <string> ips = new List <string>(); IPManager.GetAllIPs(ips, IPManager.ADDRESSFAM.IPv4, false); foreach (var ip in ips) { //var entry = Instantiate(ipEntryRef, ipEntryRef.Parent); //entry.SetActive(true); //entry.IpLabel.text = ip; //entry.CopyBtn.onClick.AddListener(() => //{ // textEditor.text = ip; // textEditor.SelectAll(); // textEditor.Copy(); // AnimatePopover(); //}); } }