Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Building classes from 'System.Net.Socket' yields compile errors

Discussion in 'VR' started by andgrg, Apr 4, 2017.

  1. andgrg

    andgrg

    Joined:
    Apr 4, 2017
    Posts:
    1
    My script uses 'NetworkStream' and 'TcpClient' classes and when I'm trying to build it as hololens project, following errors are thrown in the console:
    As a .net newbie I'm quite clueless on how should I approach this issue, so any solution will be appreciated.

    Environment:
    Unity 5.6.0f3
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    You could switch to IL2CPP scripting backend. It supports sockets just fine.
     
    andgrg likes this.