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: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,12 @@
1
+
## 2022.3.0
2
+
*[Web] Switch to `package:web` to support WebAssembly (WASM).
3
+
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
4
+
* Fix lint warnings to improve static analysis.
5
+
* Small ReadMe fixes.
6
+
7
+
**Note:**
8
+
> This release is unrelated to an old version `2022.3.0-alpha1` of `flutter_unity_widget`.
9
+
1
10
## 2022.2.2
2
11
*[Android] Fix touch detection when using Unity's New Input System. [#938](https://github.com/juicycleff/flutter-unity-view-widget/pull/938)
3
12
*[Android] Workaround for mUnityplayer error in Unity plugins using the AndroidJavaProxy. [#908](https://github.com/juicycleff/flutter-unity-view-widget/pull/908)
@@ -90,7 +90,7 @@ is not compatible with other versions, it just mean it's been tested to work wit
90
90
91
91
## Installation
92
92
93
-
This plugin requires Flutter >= 3.3.0
93
+
This plugin requires Flutter >= 3.16.0.
94
94
95
95
First depend on the library by adding this to your packages `pubspec.yaml`:
96
96
```yaml
@@ -118,7 +118,7 @@ You will need to open and export a Unity project, even for running the example.
118
118
119
119
## Setup
120
120
121
-
In the tutorial below, there are steps specific to each platform, denoted by a :information_source: icon followed by
121
+
In the tutorial below, there are steps specific to each platform, denoted by a ℹ️ icon followed by
122
122
the platform name (Android or iOS). You can click on its icon to expand it.
123
123
124
124
### Prerequisites
@@ -130,6 +130,23 @@ the platform name (Android or iOS). You can click on its icon to expand it.
130
130
- A `fuw-XXXX.unitypackage` file, found in the [*unitypackages*](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) folder.
131
131
Try to use the most recent unitypackage available.
132
132
133
+
### Unity versions for publishing
134
+
If you want to publish your app for Android or iOS, you need to satisfy certain Unity version requirements.
135
+
136
+
**iOS**
137
+
Apple's [privacy manifest requirements](https://discussions.unity.com/t/apple-privacy-manifest-updates-for-unity-engine/936052) need a minimal Unity version of:
138
+
* 2021.3.35+
139
+
* 2022.3.18+
140
+
* 6000.0.0+
141
+
142
+
**Android**
143
+
> 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
+
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+
149
+
133
150
134
151
### Unity project setup
135
152
These instructions assume you are using a new Unity project. If you open the example project from this repository, you can move on to the next section **Unity Exporting**.
@@ -198,7 +215,7 @@ After exporting Unity, you will need to make some small changes in your iOS or A
198
215
You will likely need to do this **only once**. These changes remain on future Unity exports.
> Because of Apple's privacy manifest requirements, you need a minimal Unity version of 2021.3.35 or 2022.3.18 to publish an app.
384
-
398
+
<summary>ℹ️ <b>iOS</b></summary>
385
399
386
400
1. Open the *ios/Runner.xcworkspace* (workspace, not the project) file in Xcode, right-click on the Navigator (not on an item), go to **Add Files to "Runner"** and add
387
401
the *ios/UnityLibrary/Unity-Iphone.xcodeproj* file.
@@ -451,7 +465,7 @@ allprojects {
451
465
452
466
453
467
<details>
454
-
<summary>:information_source: <b>AR Foundation Android</b></summary>
468
+
<summary>ℹ️ <b>AR Foundation Android</b></summary>
455
469
456
470
1. Check the version of the `XR Plugin Management` in the Unity package manager. Versions `4.3.1 - 4.3.3` contain a bug that breaks Android exports.
457
471
Make sure to use a version <=`4.2.2` or >=`4.4`.
@@ -480,7 +494,7 @@ allprojects {
480
494
</details>
481
495
482
496
<details>
483
-
<summary>:information_source: <b>AR Foundation iOS</b></summary>
497
+
<summary>ℹ️ <b>AR Foundation iOS</b></summary>
484
498
485
499
1. Open the *ios/Runner/Info.plist* and add a camera usage description.
These steps are based on these [Vuforia docs](https://developer.vuforia.com/library/unity-extension/using-vuforia-engine-unity-library-uaal#ios-specific-steps) and [this comment](https://github.com/juicycleff/flutter-unity-view-widget/issues/314#issuecomment-785302253)
513
527
@@ -541,7 +555,7 @@ We recommend using a physical iOS or Android device, as emulator support is limi
541
555
Below are the limited options to use an emulator.
542
556
543
557
<details>
544
-
<summary> <b>iOS Simulators</b> </summary>
558
+
<summary>ℹ️ <b>iOS Simulators</b> </summary>
545
559
546
560
The `Target SDK` option in the Unity player settings is important here.
547
561
-`Device SDK` exports an ARM build. (Which does **NOT** work on ARM simulators)
@@ -585,7 +599,7 @@ The rest depends on the type of processor in your mac:
585
599
</details>
586
600
587
601
<details>
588
-
<summary> <b>Android emulators</b></summary>
602
+
<summary>ℹ️ <b>Android emulators</b></summary>
589
603
590
604
Unity only supports ARM build targets for Android. However most Android emulators are x86 which means they simply won't work.
591
605
@@ -625,19 +639,40 @@ If you computer does not have an ARM processor, like most computers running on I
625
639
626
640
2. Use the method `postMessage` to send a string, using the GameObject name and the name of a behaviour method that should be called.
627
641
642
+
```dart
643
+
// Snippet of postMessage usage in the example project.
644
+
_unityWidgetController?.postMessage(
645
+
'Cube', // GameObject name
646
+
'SetRotationSpeed', // Function name in attached C# script
647
+
speed, // Function parameter (string)
648
+
);
649
+
```
628
650
### Unity-Flutter
629
651
630
652
1. Select the GameObject that should execute the communication and go to **Inspector > Add Component > Unity Message Manager**.
0 commit comments