microsoft / MRLightingTools-Unity

A Unity library and MRTK extension for estimating and replicating the current environment's lighting on Mixed Reality devices.
MIT License
188 stars 25 forks source link

The type or namespace name 'WebCam' does not exist in the namespace 'UnityEngine.XR.WSA #5

Open genereddick opened 4 years ago

genereddick commented 4 years ago

In Unity 2019.2.9

Assets\MixedRealityToolkit.LightingTools\CameraCapture\CameraCaptureUWP.cs(10,26): error CS0234: The type or namespace name 'WebCam' does not exist in the namespace 'UnityEngine.XR.WSA' (are you missing an assembly reference?)

When building these Using statements seem to have issues. In CameraCaptureUWP

if WINDOWS_UWP

... using UnityEngine.XR.WSA.WebCam; using Windows.Media.Devices;

roalchaq commented 4 years ago

Hey @genereddick They moved WebCam to a different namespace, it is now under UnityEngine.Windows.WebCam.