Skip to content

Cannot build MLAPI WebGL project #722

@yeOldeNoob

Description

@yeOldeNoob

Describe the bug
After adding MLAPI to my project, WebGL builds fail.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Unity project (3D).
  2. Add the MLAPI project via the package manager (git).
  3. File->Build Settings->WebGL->Switch Platform->Build

Expected behavior
Project builds successfully.

Screenshots
See below.

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2019.4.21f1 Personal
  • MLAPI Version: 0.10.0
  • MLAPI Commit:3e3aef6

Additional context
Errors (for searchability):

Library\PackageCache\com.unity.multiplayer.mlapi@3e3aef6aa0\Runtime\Transports\UNET\RelayTransport.cs(251,74): error CS0117: 'NetworkTransport' does not contain a definition for 'QueueMessageForSending'
Library\PackageCache\com.unity.multiplayer.mlapi@3e3aef6aa0\Runtime\Transports\UNET\RelayTransport.cs(266,60): error CS0117: 'NetworkTransport' does not contain a definition for 'QueueMessageForSending'
Library\PackageCache\com.unity.multiplayer.mlapi@3e3aef6aa0\Runtime\Transports\UNET\RelayTransport.cs(271,74): error CS0117: 'NetworkTransport' does not contain a definition for 'SendQueuedMessages'
Library\PackageCache\com.unity.multiplayer.mlapi@3e3aef6aa0\Runtime\Transports\UNET\RelayTransport.cs(273,60): error CS0117: 'NetworkTransport' does not contain a definition for 'SendQueuedMessages'
Error building Player because scripts had compiler errors
Build completed with a result of 'Failed' in 1 seconds (1391 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <208995a09fe148f5a6f6c571838c154f>:0 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <208995a09fe148f5a6f6c571838c154f>:0 
UnityEngine.GUIUtility:ProcessEvent (int,intptr)

Metadata

Metadata

Assignees

Labels

good-first-issueContributions are welcome. Good first issue for newcomers or first time contributors.priority:highThis issue has high priority and we are focusing to resolve itstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions