Integrate with Flutter Project
Last updated
Last updated
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
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 the ios/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.