- Home /
iPad crashed when getting videoRotationAngle from a WebCamTexture
This works fine on Android.
When I debug in xcode the debugger breaks in the middle of some assembly code. The last thing in the call stack is GetVideoRotationAngle, so I assume that is what the problem is.
Answer by chris.malloy · Nov 20, 2014 at 09:51 PM
The solution is to make sure you only try to get the videoRotationAngle after calling Play() on WebCamTexture.
Answer by jerome-lacoste · Mar 04, 2015 at 02:28 PM
I had a similar crash on IOS happening when the Camera was disabled.
It looked like the WebCamTexture wasn't fully initialized.
My workaround was to not call videoRotationAngle when didUpdateThisFrame was false, to let the camera initialize (to a black screen). Reported to Unity as bug #676711. This happened on unity 4.5.5 / 4.6.2.