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'
Comments (11)
-
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
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Resolution Note (fix version 1.0.2):
Fixed in 2019.3.0a5