UnityNativeCamera icon indicating copy to clipboard operation
UnityNativeCamera copied to clipboard

Canvas pushes down after taking photo

Open decoderzhub opened this issue 7 years ago • 8 comments

Hello,

After I take a photo or even if I don't take a photo but after the app access the native camera using an iOS it doesn't shift the canvas back to its original position. Do you know how I can fix this?

decoderzhub avatar Jun 24 '18 23:06 decoderzhub

Is it a Unity UI Canvas we are talking about or something else?

yasirkula avatar Jun 25 '18 06:06 yasirkula

Yes on the Unity UI Canvas.

decoderzhub avatar Jun 25 '18 13:06 decoderzhub

Honestly, I'm surprised to hear that NativeCamera somehow modifies the properties of a canvas. Can you post two screenshots for clarification: one before accessing the camera and another one after accessing the camera?

yasirkula avatar Jun 25 '18 14:06 yasirkula

I tried to replicate the issue again and I can't get it to do it now. I was able to fix it with changing the anchor last night.

I guess it has something to do with that.

decoderzhub avatar Jun 25 '18 20:06 decoderzhub

Okay got it to replicate it's because I had my hotspot on and the banner that comes across that tells you how many people are connected pushes it down when it launches the camera.

so it most likely won't happen for anyone using an app if they don't have their iOS running as a hotspot device.

Before img_1341

After img_1343

decoderzhub avatar Jun 25 '18 20:06 decoderzhub

It does seem like an annoying bug. Right now, I have no idea why this happens but I'll let you know if I find something about it.

yasirkula avatar Jun 25 '18 21:06 yasirkula

I have same issues on IOS

harunuysali07 avatar Aug 04 '19 23:08 harunuysali07

Do the suggestions in this topic help (in addition to this)? To test an Objective-C function, you can try inserting it here.

yasirkula avatar Aug 05 '19 07:08 yasirkula