You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,31 @@ This plugin works with the same [unitypackages](https://github.com/juicycleff/fl
23
23
For now, most of the original readme is included below for documentation.
24
24
I might expand on this later.
25
25
26
+
## Migration from Unity 2022 to Unity 6.
27
+
The 6000 version is currently based on a 6000 branch in the original repo. See [this issue](https://github.com/juicycleff/flutter-unity-view-widget/issues/967) for more details.
28
+
29
+
In short:
30
+
1. Follow the regular android setup like in the readme.
31
+
But for Android ignore setting `ndk.dir=` in `local.properties`.
32
+
Use the `ndkVersion = "<ndk version number here>"` in build.gradle approach.
33
+
34
+
1. Your Flutter project will need to use Java 17 and gradle 8.x to match the versions used by Unity.
35
+
36
+
Try to match or exceed these gradle and AGP versions:
37
+
38
+
| Unity Version | Gradle Version | Android Gradle Plug-in Version | NDK | JDK |
Check [the Unity documentation](https://docs.unity3d.com/6000.0/Documentation/Manual/android-gradle-version-compatibility.html) for any updates. You can change the editor version in the top left.
44
+
45
+
46
+
3. Make sure to import a 6000.0.x unitypackage into your Unity project. The export scripts have been updated.
47
+
48
+
2. Make sure to delete any old exports in `ios/UnityLibrary` and `android/unityLibrary` before making a new export.
49
+
50
+
26
51
27
52
## Migration from flutter_unity_widget
28
53
I've tried to keep most internal classes identical, to keep migrating to the fork simple.
@@ -33,7 +58,7 @@ You just need to rename the plugin by adding `_2` in several files in your proje
33
58
```diff
34
59
dependencies:
35
60
- flutter_unity_widget: ^2022.2.1
36
-
+ flutter_unity_widget_2: ^2022.2.2
61
+
+ flutter_unity_widget_2: ^2022.2.2 # use ^6000.0.0 for Unity 6.x
0 commit comments