Search Issue Tracker

Fixed in 1.0.2

Votes

11

Found in [Package]

preview - 0.2.4

Issue ID

1149977

Regression

No

[WebGL] NetworkDiscovery.cs build errors when trying to build a project with Multiplayer HLAPI

Package: Multiplayer hlapi

-

How to reproduce:
1. Open the attached project ('1149977repro.zip')
2. Build for WebGL

Expected results: Project is successfully built
Actual results: Project is unable to be built because of 4 identical NetworkDiscovery.cs errors

Reproducible with: 2019.1.1f1, 2019.2.0a14, 2019.3.0a1
and with all package versions
Multiplayer HLAPI package was introduced in 2019.1.0a12

The build error occurs in 4 different places in Network Discovery.cs:
Library\PackageCache\com.unity.multiplayer-hlapi@1.0.2\Runtime\NetworkDiscovery.cs(317,30): error CS0117: 'NetworkTransport' does not contain a definition for 'SetMulticastLock'
Library\PackageCache\com.unity.multiplayer-hlapi@1.0.2\Runtime\NetworkDiscovery.cs(348,30): error CS0117: 'NetworkTransport' does not contain a definition for 'SetMulticastLock'
Library\PackageCache\com.unity.multiplayer-hlapi@1.0.2\Runtime\NetworkDiscovery.cs(388,30): error CS0117: 'NetworkTransport' does not contain a definition for 'SetMulticastLock'
Library\PackageCache\com.unity.multiplayer-hlapi@1.0.2\Runtime\NetworkDiscovery.cs(449,34): error CS0117: 'NetworkTransport' does not contain a definition for 'SetMulticastLock'

  1. Response avatar

    Resolution Note (fix version 1.0.2):

    Fixed in 2019.3.0a5

Comments (11)

  1. C5d7999556ba7801ea2029cbabe914e7?d=mm

    Jacob-Christ

    May 05, 2019 17:04

    I found a way around this issue (for me). I'm not using any networking so I just double clicked on each of the errors and commented out the offending lines (and one time the if statement above). This allows my project to compile.

    This error is in some deprecated code, if your project is using it then it will be going away in the future and then you will have bigger issues. If your project is not using networking then its probably safe to do my above work around.

    Jacob

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.