By tkaniatobe
on Wed, 06/20/2012 - 17:10
I'm building an android Unity AR app for the Sony Tablet S. I'm basing everything off of the demo project on the unity assets store(before the vuforia update). What happens is whenever the lock button is pressed the camera is frozen on the last rendered frame when the app is resumed. This is the case for the demo scene provided.Only way around is to close the app out and restart. Can this method below somehow be edited to fix this problem? Any help would be greatly appreciated.
// Stops QCAR when the application is sent to the background.
void OnApplicationPause(bool pause)
{
if (pause)
{
StopQCAR();
GL.Clear(false, true, new Color(0.0f, 0.0f, 0.0f, 1.0f));
}
else
{
StartQCAR();
// Clear any artifacts from the buffers on resume
mClearBuffers = 8;
}
}
thanks,
-T
Re: Unity AR app freezes when app resumes
Re: Unity AR app freezes when app resumes
Re: Unity AR app freezes when app resumes
Re: Unity AR app freezes when app resumes