Search packages, repositories and app categories

Package detailsv2.0.0

flutter_embed_unity

Harness the power of Unity 3D in your Flutter app by embedding Unity as a widget. Useful for adding 3D, gaming or augmented reality (AR) to your app.

AndroidiOS
30-day downloads
21.5K
Likes
50
Pub points
150

Install package

flutter pub add flutter_embed_unity

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

flutter_embed_unity enables seamless integration of Unity 3D content into Flutter applications by embedding Unity as a native widget. It allows developers to leverage Unity’s advanced 3D rendering, gaming engines, and AR capabilities within their Flutter apps. The package supports both Android and iOS platforms, making it ideal for interactive experiences that require high-performance graphics. With straightforward setup via pub, it bridges the gap between Flutter’s UI flexibility and Unity’s powerful game development tools.

Use cases

  • Adding 3D visualizations
  • Creating mobile games
  • Implementing augmented reality features
  • Integrating interactive simulations
  • Enhancing app engagement with immersive content

Key features

  • Embed Unity as a Flutter widget
  • Supports Android and iOS
  • Simple pub package integration
  • Bidirectional communication with Unity
  • Optimized performance for mobile

Suitable for

  • Developers building 3D or AR apps
  • Game developers using Flutter
  • Teams combining Flutter UI with Unity assets
  • Apps requiring rich interactive experiences
  • Projects needing cross-platform 3D support

Considerations

  • Requires Unity project setup
  • Limited to Android and iOS
  • May increase app size
  • Needs careful memory management
  • Potential complexity in state synchronization

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Federated plugin overview

[!NOTE] See the main README of the app-facing package for details.

This is a containing folder for a federated Flutter plugin for embedding Unity 3D into Flutter apps, containing:

  • flutter_embed_unity: this is the main app-facing package, which you should depend on in your Flutter app's pubspec.yaml
  • flutter_embed_unity_2022_3_android: the Android platform package for this plugin, supporting Unity 2022.3 LTS
  • flutter_embed_unity_2022_3_ios: the iOS platform package for this plugin, supporting Unity 2022.3 LTS
  • flutter_embed_unity_platform_interface: The package that glues the app-facing package to the platform package(s). This package declares an interface that any platform package must implement to support the app-facing package. Having a single package that defines this interface ensures that all platform packages implement the same functionality in a uniform way.
  • example_unity_2022_3_project: a Unity project for building into the example project, for demo and development purposes

Categories

Dependencies

Dependency list 3 items

  • flutter_embed_unity_2022_3_ios^2.0.0
  • flutter_embed_unity_6000_0_android^2.0.0
  • flutter_embed_unity_platform_interface^2.0.0

Source repository

Projects using this package

No data available yet.