Skip to content

Commit 0e4e211

Browse files
committed
Merge branch 'flutter_unity_widget_2' into flutter_unity_widget_2-6000
2 parents 157829e + fdccc8b commit 0e4e211

2 files changed

Lines changed: 22 additions & 13 deletions

File tree

README.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you are looking for a full rewrite of the Unity integration, try [flutter_emb
1414
* Plugin versions `6000.x.y` support Unity 6 and up.
1515

1616

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.
1818

1919
<br />
2020

@@ -26,9 +26,12 @@ I might expand on this later.
2626
## Migration from Unity 2022 to Unity 6.
2727
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.
2828

29+
Make sure to import a new unitypackage of version 6000.x.y.
30+
31+
### Android
2932
In short:
3033
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`.
3235
Use the `ndkVersion = "<ndk version number here>"` in build.gradle approach.
3336

3437
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:
3740

3841
| Unity Version | Gradle Version | Android Gradle Plug-in Version | NDK | JDK |
3942
|-----------------------------------|-----------------|--------------------------------|----------------------|-----|
40-
| 6000.0.45f1+ | 8.11 | 8.7.2 | r27c (27.2.12479018) | 17 |
43+
| 6000.2 - 6000.3+ | 8.13 | 8.10.0 | r27c (27.2.12479018) | 17 |
44+
| 6000.0.61f1+ | 8.13 | 8.10.0 | r27c (27.2.12479018) | 17 |
45+
| 6000.0.45f1 - 6000.0.60f1 | 8.11 | 8.7.2 | r27c (27.2.12479018) | 17 |
4146
| 6000.0.1f1 - 6000.0.44f1 | 8.4 | 8.3.0 | r27c (27.2.12479018) | 17 |
47+
| 2022.3.38f1+ | 7.5.1 | 7.4.2 | r23b (23.1.7779620) | 11 |
48+
| 2022.3.0f1 - 2022.3.37f1 | 7.2 | 7.1.2 | r23b (23.1.7779620) | 11 |
4249

4350
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.
4451

@@ -58,7 +65,7 @@ You just need to rename the plugin by adding `_2` in several files in your proje
5865
```diff
5966
dependencies:
6067
- 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
6269
```
6370

6471
2. Dart files in your Flutter project.
@@ -120,7 +127,8 @@ This plugin requires Flutter >= 3.16.0.
120127
First depend on the library by adding this to your packages `pubspec.yaml`:
121128
```yaml
122129
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
124132
```
125133

126134
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.
152160

153161
- An existing Unity project (if there is none, you can [create a new one](https://learn.unity.com/tutorial/create-your-first-unity-project)).
154162

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.
156164
Try to use the most recent unitypackage available.
165+
Alternatively, you can install the unitypackage using the Unity package manager.
157166

158167
### Unity versions for publishing
159168
If you want to publish your app for Android or iOS, you need to satisfy certain Unity version requirements.
@@ -164,13 +173,13 @@ Apple's [privacy manifest requirements](https://discussions.unity.com/t/apple-pr
164173
* 2022.3.18+
165174
* 6000.0.0+
166175

167-
**Android**
168-
> 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.
169176

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:
179+
* 2021.3.56f2+
180+
* 2022.3.67f2+
181+
* 6000.0.58f2+
182+
* 6000.2.6f2
174183

175184

176185
### Unity project setup

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 6000.1.0+1
66
# - Thomas Stockx <thomas@stockxit.com>
77
# - Kris Pypen <kris.pypen@gmail.com>
88
repository: https://github.com/timbotimbo/flutter-unity-view-widget
9-
issue_tracker: https://github.com/juicycleff/flutter-unity-view-widget/issues
9+
issue_tracker: https://github.com/timbotimbo/flutter-unity-view-widget/issues
1010

1111
environment:
1212
sdk: ">=3.2.0 <4.0.0"

0 commit comments

Comments
 (0)