Unity3d PhotoCapture.CreateAsync()从未执行

Unity3d PhotoCapture.CreateAsync()从未执行,unity3d,hololens,Unity3d,Hololens,我正在使用全息镜头和Unity,我试着拍一张照片 我有和这次讨论一样的问题 此代码在统一的单一行为中: void Start() { Debug.LogError("CreateAsync start"); Debug.LogError(WebCam.Mode); Debug.LogError(PhotoCapture.SupportedResolutions); foreach (Resolution resolution in PhotoCapture.SupportedR

我正在使用全息镜头和Unity,我试着拍一张照片

我有和这次讨论一样的问题

此代码在统一的单一行为中:

void Start() {
  Debug.LogError("CreateAsync start");
  Debug.LogError(WebCam.Mode);
  Debug.LogError(PhotoCapture.SupportedResolutions);
  foreach (Resolution resolution in PhotoCapture.SupportedResolutions) {
    Debug.LogError(resolution);
  }
  Debug.LogError("END");
  PhotoCapture.CreateAsync(false, delegate (PhotoCapture captureObject) {
    Debug.LogError("CreateAsync done");
  }
}
打印此输出:

CreateAsync start
None
UnityEngine.Resolution[]
END
以下是我的“能力”部分包。appxmanifest:

<Capabilities>
    <Capability Name="internetClient" />
    <uap2:Capability Name="spatialPerception" />
    <DeviceCapability Name="webcam" />
    <DeviceCapability Name="microphone" />
</Capabilities>
你看到我的问题了吗? 其他脚本可以阻止执行吗?

在全息镜头上:

Settings/Privacy/Camera/“让应用程序使用我的相机”=>ON

它的工作。。。 我希望在这种情况下有明确的错误信息。

全息镜头:

Settings/Privacy/Camera/“让应用程序使用我的相机”=>ON

它的工作。。。
我希望在这种情况下有一条明确的错误消息。

有一些断点,我有一个错误:
在代码到达以下行时初始化IMediaCapture失败:
PhotoCapture.CreateAsync()
,有一些断点,我有以下错误:
在代码到达以下行时初始化IMediaCapture失败:
PhotoCapture.CreateAsync()
Module information:
Built with Compiler Ver '190023918'
Built from '5.5/release' branch
Version is '5.5.3f1 (4d2f809fd6f3)'
Release build
Application type 'D3D11'
Used 'UWP'

OS 'Windows 10 (10.0.14393)'