The type or namespace name `Input' does not exist in the namespace `UnityEngine.XR.WSA'. Are you missing an assembly reference?
I just updated from Unity 5.6.4 to 2017.3 and now I am getting the following error when I try to build:
The type or namespace name 'Input' does not exist in the namespace `UnityEngine.XR.WSA'. Are you missing an assembly reference?
This is occurring on several scripts that attempt to use UnityEngine.XR.WSA.Input.GestureRecognizer
The scripts were auto-updated to include UnityEngine.XR.WSA when the project was opened in 2017.3 for the first time.
Things I have tried deleting the following folders, this did not solve the problem: - Library/ScriptAssemblies folder - Library/UnityAssemblies
I tried making a new, empty project in 2017.3, made a single script and added "using UnityEngine.XR;" This was fine, the project built.
I then added "using UnityEngine.XR.WSA;" This was fine, the project built.
I then added "using UnityEngine.XR.WSA.Input;" This threw the error, and the build failed
I also tried using UnityEngine.XR.WSA.Sharing; and UnityEngine.XR.WSA.Persistence; and these two caused the build to fail.
I am at a bit of a loss now. At first I thought it might be a problem with my project, but since this occurs in a new empty project as well I'm not so sure.
2017.3.1f1. I am using using UnityEngine.XR.WSA.WebCam;
and get the same error when I build on Standalone. But when I build it for Universal Windows Platform, Unity builds the project without error.
If you found any solution, please let us know.