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
+44-10Lines changed: 44 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ If you are looking for a full rewrite of the Unity integration, try [flutter_emb
14
14
* Plugin versions `6000.x.y` support Unity 6 and up.
15
15
16
16
17
-
This plugin works with the same [unitypackages](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) as the original plugin.
17
+
This plugin works with the same [unitypackages](https://github.com/timbotimbo/flutter-unity-view-widget/tree/flutter_unity_widget_2/unitypackages) as the original plugin.
18
18
19
19
<br />
20
20
@@ -23,6 +23,38 @@ 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
+
Make sure to import a new unitypackage of version 6000.x.y.
30
+
31
+
### Android
32
+
In short:
33
+
1. Follow the regular android setup like in the readme.
34
+
But for Android do **NOT** use `ndk.dir=` in `local.properties`.
35
+
Use the `ndkVersion = "<ndk version number here>"` in build.gradle approach.
36
+
37
+
1. Your Flutter project will need to use Java 17 and gradle 8.x to match the versions used by Unity.
38
+
39
+
Try to match or exceed these gradle and AGP versions:
40
+
41
+
| 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.
51
+
52
+
53
+
3. Make sure to import a 6000.0.x unitypackage into your Unity project. The export scripts have been updated.
54
+
55
+
2. Make sure to delete any old exports in `ios/UnityLibrary` and `android/unityLibrary` before making a new export.
56
+
57
+
26
58
27
59
## Migration from flutter_unity_widget
28
60
I've tried to keep most internal classes identical, to keep migrating to the fork simple.
@@ -33,7 +65,7 @@ You just need to rename the plugin by adding `_2` in several files in your proje
33
65
```diff
34
66
dependencies:
35
67
- flutter_unity_widget: ^2022.2.1
36
-
+ flutter_unity_widget_2: ^2022.2.2
68
+
+ flutter_unity_widget_2: ^2022.3.0 # use ^6000.1.0 for Unity 6.x
37
69
```
38
70
39
71
2. Dart files in your Flutter project.
@@ -95,7 +127,8 @@ This plugin requires Flutter >= 3.16.0.
95
127
First depend on the library by adding this to your packages `pubspec.yaml`:
96
128
```yaml
97
129
dependencies:
98
-
flutter_unity_widget_2: ^2022.2.2 # use the latest compatible version
130
+
flutter_unity_widget_2: ^2022.3.0 # use the latest compatible version
131
+
# use ^6000.1.0 for Unity 6.x
99
132
```
100
133
101
134
Now inside your Dart code you can import it.
@@ -127,8 +160,9 @@ the platform name (Android or iOS). You can click on its icon to expand it.
127
160
128
161
- An existing Unity project (if there is none, you can [create a new one](https://learn.unity.com/tutorial/create-your-first-unity-project)).
129
162
130
-
- A `fuw-XXXX.unitypackage` file, found in the [*unitypackages*](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) folder.
163
+
- A `fuw-XXXX.unitypackage` file, found in the [*unitypackages*](https://github.com/timbotimbo/flutter-unity-view-widget/tree/flutter_unity_widget_2/unitypackages) folder.
131
164
Try to use the most recent unitypackage available.
165
+
Alternatively, you can install the unitypackage using the Unity package manager.
132
166
133
167
### Unity versions for publishing
134
168
If you want to publish your app for Android or iOS, you need to satisfy certain Unity version requirements.
> Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes.
144
176
145
-
This requires [Unity versions](https://discussions.unity.com/t/info-unity-engine-support-for-16-kb-memory-page-sizes-android-15/1589588):
146
-
* 2021.3.48+ (Enterprise and Industry only)
147
-
* 2022.3.56+
148
-
* 6000.0.38+
177
+
**Android**
178
+
Due to a [security advisory](https://unity.com/security/sept-2025-01) the minimal Unity versions are:
0 commit comments