juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.13k stars 518 forks source link

Unity is darker when using useAndroidViewSurface: false #824

Open EskAere opened 1 year ago

EskAere commented 1 year ago

I would like to use UnityWidget with useAndroidViewSurface: false since it is more reliable. However, the game looks darker. It is like there is a black overlay on top of the game. I must set the parameter to true to have the same color as the standalone build/editor version.

Unity

Smartphone

timbotimbo commented 1 year ago

I just tried an export of the example project with Unity 2021.3.21, on Android 13 (Samsung Galaxy S20FE). I can't spot a difference with either Flutter 3.7.12 or 3.10.3.

See if you can replicate it in the example project, or if it is something limited to your own project. useAndroidViewSurface: true might break stuff like blur or opacity on some Flutter versions, which could cause it to show up brighter.

timbotimbo commented 9 months ago

I just noticed this when posting 2 screen recordings side by side in this comment I will need to look deeper into what is causing this.