如何暂停/冻结Unity的AR相机?

发布于 2025-02-05 08:08:29 字数 193 浏览 1 评论 0原文

我正在制作一个团结的AR游戏。

我使用常用​​的“ time.timescale = 1”来使用暂停功能, 这将使AR相机屏幕变成黑屏。

另外,如果您在此状态中添加AR遮挡管理器功能,则该应用将在屏幕错误中删除。

使用AR相机时,实施临时悬架的正确方法是什么? 您要使用AR相机查看的实际屏幕应使用冷冻框架看到。

I am making an AR game with Unity.

I used the commonly used 'Time.timeScale = 1' to use the pause function,
This will turn the AR Camera screen into a black screen.

In addition, if you add the ar occlusion manager function in this state, the app will be down with the screen bugged.

When using AR Camera, what is the proper way to implement temporary suspension?
The actual screen you are viewing with AR camera should be seen with a frozen frame.

Please

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你再特殊 2025-02-12 08:08:30

我要做的就是拍摄相机拍摄

ScreenCapture.CaptureScreenshot("TestImage.png");

原始图像上显示它

RawImage qrRenderer;
renderer.material.mainTexture = webcamTexture;

,然后我会在当时可以禁用相机的

camera.enabled = false;

What i would do is take a camera shot

ScreenCapture.CaptureScreenshot("TestImage.png");

then i would display it on a raw image

RawImage qrRenderer;
renderer.material.mainTexture = webcamTexture;

you can at that time disable youe camera

camera.enabled = false;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文