Integrate with Flutter Project
Flutter Unity Widget
This is an open-source project that helps developers to easily integrate Flutter Project with Unity. It includes simple interface to send message to Unity, receive message from Unity, and embed Unity Widget as a component of Flutter Project
Configuration
Following steps are required to embed Unity inside your Flutter project
Open the
ios/Runner.xcworkspace
(workspace, not the project) file in Xcode, right-click on the Navigator (not on an item), go to Add Files to "Runner" and add theios/UnityLibrary/Unity-Iphone.xcodeproj
file.
Open the
ios/Runner/AppDelegate.swift
file and change the following:
Add the
UnityFramework.framework
file as a library to the Runner project
Even with these configurations, there might be a problem launching the application. Please refer to the section below to resolve problems.
An example of Flutter-Unity integrated MYTY Avatar project can be found in the section below.
Last updated