Closed timbotimbo closed 3 months ago
I've briefly researched the changes in Unity Android that occur in Unity 2023 and later, and I'd like to share my findings.
I added a branch to test an alpha implementation for Unity 6. Check https://github.com/juicycleff/flutter-unity-view-widget/issues/967 for instructions.
Given that 6 is actually 2023.3, I'm skipping 2023.1 and 2023.2.
Since Unity changed their classes, I decided on a separate verion that isn't backwards compatible. The only alternative is using a lot of reflection to pick the correct classes, which won't be good for maintenance and performance.
Describe the bug
Unity 2023 changed some Android classes, which cause compile errors with all plugin versions up to 2022.2.x. This makes Unity 2023 incompatible with the android version of this plugin.
In the 2023.1.0 changelog:
This fork was linked on Discord, which is supposed to handle these changes. https://github.com/ritolika/flutter-unity-view-widget/tree/Unity-2023.1
TODO
There are 2 choices:
I hope that we can somehow achieve option 1, but I don't know how feasible that is.
Errors
Here are some of the compilation errors you'll get when you try to build it
Compile errors (expand this)
``` e: C:\To Reproduce
Steps to reproduce the behavior: