Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

NetworkPlayer missing assembly?

Discussion in 'VR' started by sebrk, Jul 3, 2017.

  1. sebrk

    sebrk

    Joined:
    Mar 20, 2012
    Posts:
    13
    OK so I'm trying to get communication up with Hololens. I started out creating a custom UDP server/client where the server used UdpClient and clients (Hololens) used DatagramSocket using the NETFX_CORE preprocessor macro. This worked fine on ALL devices except the magical Hololens (despite being UWP and correct capabilities are set). I then refocused and started implementing a NetworkDiscovery subclass. However it complains about not finding assembly for NetworkPlayer.

    I'm getting weary of this. How should I know what works and what doesn't work? Is this just trial and error?

    Does anyone know why this is happening?

    Ps. Server is a mobile device and clients are Hololenses
     
  2. sebrk

    sebrk

    Joined:
    Mar 20, 2012
    Posts:
    13
    @Unity_Wesley I'm in a bit of a hurry. Maybe you can give me quick answers?
     
  3. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    NetworkPlayer is not supported on UWP. You'll need to use the new networking system.
     
  4. sebrk

    sebrk

    Joined:
    Mar 20, 2012
    Posts:
    13
    Yes I figured. But how do I know what is the "new" system and what is the old? I find no clear indication of this in the documents?
     
  5. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    I'm told the new one is basically anything in the Networking namespace. So any samples you find that directly have "Networking." prefix certain types and function calls (or, more likely, just drops a "using UnityEngine.Networking;" at the top of the script) should point you in the right direction.