This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
flutter-unity-view-widget/example
Rex Isaac Raphael 89672ad9e0 full support for AR kit on iOS and updated example
Former-commit-id: f7922f49f34ad54f0c3bb5acae3391b2925855ea
Former-commit-id: f8c261c5478d0ef9a32124c470f03ad59d8c5d37
2019-10-18 15:38:35 +02:00
..
android Updated Android sample to showcase "Flutter to Unity" and "Unity to Flutter" functionality 2019-10-07 16:29:02 +02:00
ios full support for AR kit on iOS and updated example 2019-10-18 15:38:35 +02:00
lib full support for AR kit on iOS and updated example 2019-10-18 15:38:35 +02:00
res/values full support for AR kit on iOS and updated example 2019-10-18 15:38:35 +02:00
test Support for android complete 2019-03-09 16:47:09 +01:00
unity full support for AR kit on iOS and updated example 2019-10-18 15:38:35 +02:00
.gitignore Updated gitignore 2019-10-17 13:48:35 +02:00
.metadata Support for android complete 2019-03-09 16:47:09 +01:00
README.md Updated README.md 2019-10-17 13:29:57 +02:00
pubspec.yaml Support for android complete 2019-03-09 16:47:09 +01:00

README.md

flutter_unity_widget_example

Demonstrates how to use the flutter_unity_widget plugin.

Run the sample on Android

  1. Open the unity project and build it: Menu -> Flutter -> Export Android
  2. Copy android/UnityExport/libs/unity-classes.jar to android/unity-classes/unity-classes.jar and overwrite the existing file. You only need to do this each time you use a different Unity version.
  3. flutter run

Run the sample on iOS

  1. Open the unity project and build it: Menu -> Flutter -> Export iOS

    Be sure you use at least Unity version 2019.3 or up.

  2. open ios/Runner.xcworkspace (workspace!, not the project) in Xcode and add the exported project in the workspace root (with a right click in the Navigator, not on an item -> Add Files to "Runner" -> add the UnityExport/Unity-Iphone.xcodeproj file

  3. Select the Unity-iPhone/Data folder and change the Target Membership for Data folder to UnityFramework

  4. flutter run