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.
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.
The solution is to make sure you only try to get the videoRotationAngle after calling Play() on WebCamTexture.
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.