flutter_unity 0.1.0+1 copy "flutter_unity: ^0.1.0+1" to clipboard
flutter_unity: ^0.1.0+1 copied to clipboard

outdated

A Flutter plugin for embedding Unity projects in Flutter projects.

flutter_unity #

A Flutter plugin for embedding Unity projects in Flutter projects.

iOS is currently not supported.

Usage #

To use this plugin, add flutter_unity as a dependency in your pubspec.yaml file.

Configuring your Unity project (Android) #

  1. Go to File > Build Settings... to open the Build Settings window.
  2. Select Android and click Switch Platform.
  3. Click Add Open Scenes.
  4. Check Export Project.
  5. Click Player Settings... to open the Player Settings window.
  6. In the Player Settings window, configure the following:
Setting Value
Other Settings > Rendering > Graphics APIs OpenGLES3
Other Settings > Configuration > Scripting Backend IL2CPP
Other Settings > Configuration > Target Architectures ARMv7, ARM64
  1. Close the Player Settings window.
  2. Click Export and save as unityExport.

Configuring your Flutter project (Android) #

  1. Copy the unityExport folder to <your_flutter_project>/android/unityExport.
  2. Run flutter pub run flutter_unity:unity_export_transmogrify.
  3. Open <your_flutter_project>/android/build.gradle and, under allprojects > repositories, add the following:
flatDir {
    dirs "${project(':unityExport').projectDir}/libs"
}
  1. Open <your_flutter_project>/android/settings.gradle and add the following:
include ':unityExport'
51
likes
0
pub points
70%
popularity

Publisher

verified publisherglartek.com

A Flutter plugin for embedding Unity projects in Flutter projects.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, io, xml

More

Packages that depend on flutter_unity