I’m making a Windows game with networking
using Windows.Networking.Proximity;
But when I’m using the header, this appears.
Assets/NetworkDelagate.cs(3,15): error CS0234: The type or namespace name Networking' does not exist in the namespace Windows’. Are you missing an assembly reference?
Networking' does not exist in the namespace
If anybody can help me set up networking, I appreciate it
You have to wrap WinRT APIs with NETFX_CORE define, because code is also compiled for the editor, where those APIs are not available.
How do I wrap WinRT APIs with NETFX_CORE?
NETFX_CORE define will make that code available only when building for Windows Store.
Like this?
#if NETFX_CORE using Windows.Networking.Proximity; #endif
Yup.