- Home /
help for static library
Hello everyone
I'm stuck for days for displaying correctly my layout using static library without any success.
What I'm trying to do is to show some contents from the native side and at the top of it the UI canvas.
For iOS, I'm using AVCaptureVideoPreviewLayer and add it like this: [UnityGetGLViewController().view.layer addSublayer:self.myAVCaptureVideoPreview];
By doing this, I can see my video preview but everything set in Unity (only canvas) are no more displayed (the camera preview is draw on top of the view which hide my canvas).
For android, I'm having the same trouble be using the Zxing library (for QR code reader and other purpose). In order to show the camera used by Zxing, I have to set a SurfaceView and move its Z position on top of the unity one in order to display my camera, but by doing this, I'm also masking my canvas.
For both ios and android, is it possible to show the camera preview (android surfaceview and ios AVCaptureVideoPreview) and on top of it my unity canvas?
I really thank you in advance for your help.
Your answer
Follow this Question
Related Questions
public static IEnumerator 1 Answer
Does the "Static" checkbox in the inspector affect Canvas UI? 0 Answers
C# LayerMask as a static method parameter? 0 Answers
"transform" in a static function 1 Answer