"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

AR camera play and pause

Hi,

I have created unity plugin for android and using it in android application. AR detections and 3D rendering everything works fine. But for particular case with ARCamera I am facing following issues :

A. When ARCamera is paused

1. Android application in background and come back in forground then ARCamera background is lost and showing blank screen. 

ARCamera Started==> ARCamera Paused==> Application Background ==> Application foreground ==> ARCamera black screen

Attached screenshots for reference

1. ARCamera Paused

2. Application background

3. Application foreground

 

 

 

Hello satampratham,

What code are you using to pause the ARCamera? Are you doing this to because you need to run some code that requires Vuforia to not be running?

Thanks,

hi,

Please find the attached script which I am using to pause and resume the camera.

when application restarted means background to foreground the image(texture) has been lost. I want the same image on the camera screen.

 

Thanks

In our sample app, the CameraSettings.cs script has the following function that properly stops and restarts Vuforia:

ismaelnascimento

Mon, 03/12/2018 - 00:21

using Vuforia;

VuforiaRenderer.Instance.Pause(true);

Attachment