I’ve migrated my VR project from Unity 2019 to Unity 2020, which means I’m using the new XR Management plugin. I’m also using Vive Input Utility and SteamVR Plugin. The editor works just fine as expected, but the problems comes at building.
It is possible to make a build for Windows 10, but each time I try to make a build for Mac or Linux, a get the warning “Cannot build player while editor is importing assets or compiling scripts”. And the log shows an error for each file at Assets/SteamVR saying, for example,
Assets\SteamVR\Scripts\SteamVR.cs(619,33): error CS0246: The type or namespace name ‘TrackedDevicePose_t’ could not be found (are you missing a using directive or an assembly reference?)
And also:
Assets\SteamVR\Scripts\SteamVR.cs(305,84): error CS0103: The name ‘OpenVR’ does not exist in the current context
Why is this happening?