I'm trying to create a Unity Program that will read from a socket that's sending UDP packets, and create in game changes accordingly. I was able to process data great with the UDPClient class, but then when I switched platform to Windows (I need it to be this because it's running on Hololens), the UDPClient was not recognized and I had to switch to the Windows.Networking API. I've found some examples online on people accepting UDP in Unity like these: https://forums.hololens.com/discussion/578/hololens-udp-server https://forums.hololens.com/discussion/7980/udp-communication-solved#latest
But even when I try them unedited (with the exception of ports and ip addresses), I get nothing when testing with my Packet Sender app. Can anyone point me in the right direction? I'm a little confused by these examples as they don't use the infinite loop I'm used to using in sockets, and instead use some sort of weird event handling.