-Some missed bits that prevent compile for Android.

This commit is contained in:
Nick Klingensmith 2020-08-05 16:43:11 -07:00
Родитель fdd0b29c9b
Коммит 5a503aaf4b
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if WINDOWS_UWP
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using UnityEngine.Windows.WebCam;
using static UnityEngine.Windows.WebCam.PhotoCapture;
@ -168,3 +168,4 @@ namespace Microsoft.MixedReality.Toolkit.LightingTools
}
}
}
#endif

Просмотреть файл

@ -174,7 +174,7 @@ namespace Microsoft.MixedReality.Toolkit.LightingTools
#if WINDOWS_UWP && !UNITY_EDITOR
cameraCapture = new CameraCaptureUWP();
#elif (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
captureCamera = new CameraCaptureARFoundation();
cameraCapture = new CameraCaptureARFoundation();
#else
// On a desktop computer, or certain laptops, we may not have access to any cameras.
if (WebCamTexture.devices.Length <= 0)