This project aims to enable users to have AR experiences for iOS and for Android. This is made possible by the game engine Unity and its package: AR Foundation. To bring the AR experience from Unity to Flutter, the plugin "flutter_unity" from Glartek is used. In the example scene, the user can test an AR scene with an printed reference image which is an example of image tracking.
This project aims to enable users to have AR experiences for iOS and for Android. This is made possible by the game engine Unity and its package: AR Foundation.
To bring the AR experience from Unity to Flutter, the plugin “flutter_unity” from Glartek is used.
In the example scene, the user can test an AR scene with an printed reference image which is an example of image tracking.
Have fun
To setup this example, please follow these instructions in Unity and Android Studio. If you didn’t download them yet, please download theme here for free:
Supported devices:
Unity Versions:
Note: You can only test this example with an real mobile device. No simulator supported.
For Android create one in <flutter-project-root>/android/
and call it unityExport
.
For iOS create one in <flutter-project-root>/ios/
and call it UnityProject
.
(<flutter-project-root>/unity/Flutter-Unity-ARFoundation-Example)
with Unity 2019.4.*^<unity-project-root>/Assets/
called please_print_me.png
so you have an reference image for image tracking.File > Build Settings
<flutter-project-root>/android/unityExport
Currently not supported due to unresolved bugs (still in development)
After exporting the files, open your downloaded flutter project in android studio and configure it as described in the following instructions.
Configuring your Flutter project (Android) from Glartek
Currently not supported due to unresolved bugs (still in development).
If you have any questions or problems, please post an issue or contact me at: martin.haferanke@gmail.com
flutter pub get
flutter pub cache repair
flutter pub get
again