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
  3. Dismiss Notice

Question WebGL Build missing UDPNetworkInterface in DefaultDriverConstructor

Discussion in 'NetCode for ECS' started by Darkwing4, Jan 31, 2024.

  1. Darkwing4

    Darkwing4

    Joined:
    Jun 14, 2018
    Posts:
    3
    I want to try DOTS under webGL
    Following the steps in this tutorial I get the errors when trying to make a build:

    com.unity.netcode@1.0.17\Runtime\Connection\DefaultDriverConstructor.cs(246,85): error CS0246: The type or namespace name 'UDPNetworkInterface' could not be found



    com.unity.netcode@1.0.17\Runtime\Connection\DefaultDriverConstructor.cs(336,62): error CS0246: The type or namespace name 'UDPNetworkInterface' could not be found


    Unity 2022.3.18f1
    com.unity.netcode@1.0.17
     
  2. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    966
    This is just a bug in 1.0.17, that has been already solved using 1.1 or 1.2.pre. there was a missing if-def clause in the DefaultDriverConstructor.cs.
    Could you please try with a more recent version of netcode?