mob-sakai / UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
https://github.com/mob-sakai/UIEffect
MIT License
5.63k stars 774 forks source link

The UIEffectCapturedImage is upside down with 'ScreenSpace - Overlay' mode #127

Closed SquareLi closed 5 years ago

SquareLi commented 6 years ago

It's working fine on Android and unity Editor, the issue only exists on ios.

Unity 2018.2.5f1 XCode9 iOS 11.4.1

mob-sakai commented 6 years ago

Hi @SquareLi

Oh, sorry. I will fix it later, but I cannot test on ios now...

mob-sakai commented 6 years ago

Is Canvas Render Mode ScreenSpace - Overlay?

mob-sakai commented 6 years ago

sep-15-2018 09-01-14

Reproduced with : 2018.2.x Editor(Mac) Not reproduced with : 5.5.x Editor(Mac), 2017.x Editor(Mac), 2018.1.x Editor(Mac)

[Edited] After repeating the test, the issue is no longer reproduced... why?

mob-sakai commented 6 years ago

I'm ready for test on iOS!

iPhone6s XCode9.4 iOS 11.4.1

Reproduced with : 5.5.x, 2017.1.x, 2018.1.x, 2018.2.x

SquareLi commented 6 years ago

Sorry I didn't have time to check this in the past few days. Regarding the Canvas, i believe both world space and overylay have the problem. I dont see this issue on Editor on Mac. It only happens on ios devices for me.

mob-sakai commented 6 years ago

Reproduced with : 5.5.x Editor & Runtime(Windows/DX11), 5.5.x Runtime(Mac/OpenGL4.1)

SquareLi commented 6 years ago

Hello! The issue in overlay mode is fixed, but the ScreenSpace-Camera mode still has the issue.

SquareLi commented 6 years ago

I added a feature that the UIEffectCapturedImage can use any camera instead of just main camera. Not sure if that's the reason, but your fix seems to only work when the canvas of the component is overylay.

mob-sakai commented 6 years ago

It did not reproduce in demo scene... I test in develop branch, build with 2018.2.5f1/XCode9.4, run on iPhone6s/iOS 11.4.1. Auto Graphics API is enable. image

Do you have a reproducible project?

SquareLi commented 6 years ago

I will try to make a test project tomorrow. It's really odd that it's upside down on some scenes, and totally fine on others. Thanks for looking into it!