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
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'
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 1.0.2):
Fixed in 2019.3.0a5