浏览代码

Use new TryAcquireLatestCpuImage method

/4.0
Tim Mowrer 5 年前
当前提交
d3fdbc7f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/Scripts/TestCameraImage.cs

2
Assets/Scripts/TestCameraImage.cs


{
// Attempt to get the latest camera image. If this method succeeds,
// it acquires a native resource that must be disposed (see below).
if (!cameraManager.TryGetLatestImage(out XRCpuImage image))
if (!cameraManager.TryAcquireLatestCpuImage(out XRCpuImage image))
{
return;
}

正在加载...
取消
保存