WebGLInput
WebGLInput copied to clipboard
'WebGLInput' could not be found in the namespace 'UnityEngine' (Linux Command Line Build)
Hi
Using the editor and CMD on windows, I get a build with no problems, but through the command line on Linux, I get an error.
/additionalfile:"Library/Bee/artifacts/2000b0aP.dag/Assembly-CSharp.AdditionalFile.txt"
##### Custom Environment Variables
DOTNET_MULTILEVEL_LOOKUP=0
##### ExitCode
1
##### Output
Assets/WebGLSupport/WebGLInput/WebGLInput.cs(271,13): error CS1069: The type name 'WebGLInput' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.WebGLModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Consider adding a reference to that assembly.
Assets/WebGLSupport/WebGLInput/WebGLInput.cs(279,13): error CS1069: The type name 'WebGLInput' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.WebGLModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Consider adding a reference to that assembly.
Assets/WebGLSupport/WebGLInput/WebGLInput.cs(398,13): error CS1069: The type name 'WebGLInput' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.WebGLModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Consider adding a reference to that assembly.
*** Tundra build failed (0.23 seconds), 41 items updated, 227 evaluated
Assets/WebGLSupport/WebGLInput/WebGLInput.cs(271,13): error CS1069: The type name 'WebGLInput' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.WebGLModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Web GL' in the Package Manager window to fix this error.
Assets/WebGLSupport/WebGLInput/WebGLInput.cs(279,13): error CS1069: The type name 'WebGLInput' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.WebGLModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Web GL' in the Package Manager window to fix this error.
Assets/WebGLSupport/WebGLInput/WebGLInput.cs(398,13): error CS1069: The type name 'WebGLInput' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.WebGLModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Web GL' in the Package Manager window to fix this error.
[ScriptCompilation] Requested script compilation because: Recompiling scripts for editor because player build failed.
Error building Player because scripts had compiler errors
this error not from the plugins. UnityEngine.WebGLInput is supported by Unity.
Yo! Just got similar problem on MacOS. The problem is in BuildPipeline and scripting symbols. It says:
Note: Be aware that changes to scripting symbols only take effect at the next domain reload, when scripts are recompiled. It also means that the built-in scripting symbols defined for the current active target platform (such as UNITY_STANDALONE_WIN, or UNITY_ANDROID) remain in place even if you try to build for a different target platform, which can result in the wrong code being compiled into your build.
So the solution I've come with is here (you can find my code in the end of the thread): https://forum.unity.com/threads/how-does-domain-reloading-work-when-you-call-switcheditorplatform-within-a-build-script.1278152/