-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Is there an existing issue for this?
- I have searched the existing issues
Unity version
- I am using Unity 2022.3 LTS
Common issues
- I have checked the common issues
Flutter version
3.13.9 and 3.16.5
Description
I copied this over from flutter_unity_widget, as I was able to reproduce this with your plugin too.
When using this widget with the default settings on Flutter 3.16, the widget is invisible on Android < 10.
Run the example with both Flutter 3.13.9 and 3.16.5.
On Android versions < 10 the widget will be invisible with Flutter 3.16.5
This seems to be a bug with Flutter, and not this plugin. But it is good to know the issue exists.
I've created this issue in the Flutter repo, see that for more details.
Videos
There is a red container behind Unity, to show when it is transparent/invisible.
(Samsung Galaxy S8, Android 9)
| 3.13.9 Visible | 3.16.5 Invisible |
|---|---|
3.13.9.mp4 |
3.16.5.mp4 |
Minimum reproducible example (MRE)
You can use your existing example project without any changes.
Alternatively this repo includes an android export and can be run with Flutter only. I hacked an export from Unity 2019.4.40 into this one as that version prebuildd the unityLibrary, which makes it much more portable.
What platforms are you seeing the problem on?
Android
Devices
- Android 9 emulator (ChromeOS export in Unity)
- Samsung Galaxy S8, Android 9
- Samsung Galaxy J5, Android 6.
- WileyFox Swift, Android 7.2.1
Anything else?
Incidentally, I discovered that I can use the android/unityLibrary folder exported using the flutter_unity_widget unitypackage with this plugin too.
Naturally messaging to Flutter and plugin specific stuff like that won't work, but it is good to know for reproducing platform view bugs.