unity3d - Unity3D 2019.3.0b7 录制 VideoCapture.CreateAsync 不调用回调函数
问题描述
我正在尝试从网络摄像头录制镜头,但是当我尝试初始化网络摄像头并调用 VideoCapture.CreateAsync 函数时,我提供的回调永远不会被调用。
我尝试使用 WebCamTexture 访问相机,效果很好。
我的 StartFunction 看起来像这样:
VideoCapture.CreateAsync(OnCaptureCreate);
我的 OnCaptureCreate 函数如下所示:
void OnCaptureCreate(VideoCapture videoC) {}
该功能与此处的统一文档中的相同:https ://docs.unity3d.com/2019.3/Documentation/ScriptReference/Windows.WebCam.VideoCapture.html 。
我已经找到了这个线程How to capture video from web camera using unity?但它只关注全息镜头,我正在尝试使用“UnityEngine.Windows.WebCam”命名空间中的 VideoCapture 进行录制。
有没有人和我一样的问题?
解决方案
推荐阅读
- azure-application-insights - 如何使用 Azure App Insights 跟踪多个长时间运行的任务操作
- c++ - C++ 模板复制构造函数
- python - 使用 Pillow ImageCMS 将 icc 颜色配置文件插入图像
- python - Pythonic 使用带有可变超时的超时装饰器
- flutter - iOS Flutter 应用不请求权限,返回权限状态未知
- python - 我如何使用turtle在python中左右循环键
- javascript - 如何使 k-means 算法起作用
- ssas - SSAS MDX 上一年 - 国家/地区聚合问题
- jekyll - 在 Liquid 标签调用中使用变量而不是字符串
- excel - Insert before Table 在文档开头输入文本