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
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)
458
458
@@ -486,7 +486,7 @@ We recommend using a physical iOS or Android device, as emulator support is limi
486
486
Below are the limited options to use an emulator.
487
487
488
488
<details>
489
-
<summary> <b>iOS Simulators</b> </summary>
489
+
<summary>ℹ️ <b>iOS Simulators</b> </summary>
490
490
491
491
The `Target SDK` option in the Unity player settings is important here.
492
492
-`Device SDK` exports an ARM build. (Which does **NOT** work on ARM simulators)
@@ -530,7 +530,7 @@ The rest depends on the type of processor in your mac:
530
530
</details>
531
531
532
532
<details>
533
-
<summary> <b>Android emulators</b></summary>
533
+
<summary>ℹ️ <b>Android emulators</b></summary>
534
534
535
535
Unity only supports ARM build targets for Android. However most Android emulators are x86 which means they simply won't work.
536
536
@@ -570,19 +570,40 @@ If you computer does not have an ARM processor, like most computers running on I
570
570
571
571
2. Use the method `postMessage` to send a string, using the GameObject name and the name of a behaviour method that should be called.
572
572
573
+
```dart
574
+
// Snippet of postMessage usage in the example project.
575
+
_unityWidgetController?.postMessage(
576
+
'Cube', // GameObject name
577
+
'SetRotationSpeed', // Function name in attached C# script
578
+
speed, // Function parameter (string)
579
+
);
580
+
```
573
581
### Unity-Flutter
574
582
575
583
1. Select the GameObject that should execute the communication and go to **Inspector > Add Component > Unity Message Manager**.
0 commit comments