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
+21-12Lines changed: 21 additions & 12 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
@@ -26,9 +26,12 @@ I might expand on this later.
26
26
## Migration from Unity 2022 to Unity 6.
27
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
28
29
+
Make sure to import a new unitypackage of version 6000.x.y.
30
+
31
+
### Android
29
32
In short:
30
33
1. Follow the regular android setup like in the readme.
31
-
But for Android ignore setting`ndk.dir=` in `local.properties`.
34
+
But for Android do **NOT** use`ndk.dir=` in `local.properties`.
32
35
Use the `ndkVersion = "<ndk version number here>"` in build.gradle approach.
33
36
34
37
1. Your Flutter project will need to use Java 17 and gradle 8.x to match the versions used by Unity.
@@ -37,8 +40,12 @@ Try to match or exceed these gradle and AGP versions:
37
40
38
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.
44
51
@@ -58,7 +65,7 @@ You just need to rename the plugin by adding `_2` in several files in your proje
58
65
```diff
59
66
dependencies:
60
67
- flutter_unity_widget: ^2022.2.1
61
-
+ flutter_unity_widget_2: ^2022.2.2 # use ^6000.0.0 for Unity 6.x
68
+
+ flutter_unity_widget_2: ^2022.3.0 # use ^6000.1.0 for Unity 6.x
62
69
```
63
70
64
71
2. Dart files in your Flutter project.
@@ -120,7 +127,8 @@ This plugin requires Flutter >= 3.16.0.
120
127
First depend on the library by adding this to your packages `pubspec.yaml`:
121
128
```yaml
122
129
dependencies:
123
-
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
124
132
```
125
133
126
134
Now inside your Dart code you can import it.
@@ -152,8 +160,9 @@ the platform name (Android or iOS). You can click on its icon to expand it.
152
160
153
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)).
154
162
155
-
- 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.
156
164
Try to use the most recent unitypackage available.
165
+
Alternatively, you can install the unitypackage using the Unity package manager.
157
166
158
167
### Unity versions for publishing
159
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.
169
176
170
-
This requires [Unity versions](https://discussions.unity.com/t/info-unity-engine-support-for-16-kb-memory-page-sizes-android-15/1589588):
171
-
* 2021.3.48+ (Enterprise and Industry only)
172
-
* 2022.3.56+
173
-
* 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