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/README.md

22 lines
891 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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. `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
<img src="../workspace.png" width="400" />
3. Select the Unity-iPhone/Data folder and change the Target Membership for Data folder to UnityFramework
<img src="../change_target_membership_data_folder.png" width="400" />
4. `flutter run`