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

UICapturedEffectImage does not work with 'ScreenSpace - Overlay' in edit mode #128

Closed Scarabay closed 6 years ago

Scarabay commented 6 years ago

Hello. I can't make it work with this UI mode. On enable canvas (or any child) with UICapturedEffectImage attached to it, an error appears: [d3d11] attempting to ReadPixels outside of RenderTexture bounds! Reading (0, 0, 290, 452) from (736, 414)

Unity version is 2018.2.2f1

mob-sakai commented 6 years ago

Hi @Scarabay

Thank you for reporting the bug! I will check it later.

mob-sakai commented 6 years ago

Well... on edit mode only? Maybe, (290, 452) is inspector view size, and (736, 414) is game view size, right?

To reproduce:

  1. Open 'UIEffect_Demo.scene'.
  2. Select 'Canvas/Transitoins/Transition - Capture Fast' in hierarchy.
  3. Press 'Capture' button in inspector.

2018.2.8f1 Windows 10