1cfa3630c0 | ||
---|---|---|
.. | ||
android | ||
ios | ||
lib | ||
res/values | ||
test | ||
unity | ||
.flutter-plugins-dependencies | ||
.gitignore | ||
.metadata | ||
README.md | ||
pubspec.yaml |
README.md
flutter_unity_widget_example
Demonstrates how to use the flutter_unity_widget plugin.
Run the sample on Android
- Open the
unity
project and build it: Menu -> Flutter -> Export Android - Copy
android/UnityExport/libs/unity-classes.jar
toandroid/unity-classes/unity-classes.jar
and overwrite the existing file. You only need to do this each time you use a different Unity version. flutter run
Run the sample on iOS
-
Open the
unity
project and build it: Menu -> Flutter -> Export iOSBe sure you use at least Unity version 2019.3 or up.
-
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
-
Select the Unity-iPhone/Data folder and change the Target Membership for Data folder to UnityFramework
-
flutter run