juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.15k stars 525 forks source link

Embed flutter app into Unity app #799

Open najongjine opened 1 year ago

najongjine commented 1 year ago

Currently, I'm using flutter-unity widget in this way. Build unity app through flutter menu -> export (ios | anroid), then Build complete app through flutter build apk. So unity app is basically running on flutter. I want it in opposite way. Embed flutter app in unity and communicate eachother, so I can be free on 150mb app, and addressable features

Velek commented 1 year ago

There is a project but it's in a preview state: https://github.com/UIWidgets/com.unity.uiwidgets The 150MB limit is going to be a hike for me. I have a large project already, and I'm adding a large Unity asset to it.

On April 25, 2023 2:35:59 AM PDT, najongjine @.***> wrote:

Currently, I'm using flutter-unity widget in this way. Build unity app through flutter menu -> export (ios | anroid), then Build complete app through flutter build apk. So unity app is basically running on flutter. I want it in opposite way. Embed flutter app in unity and communicate eachother, so I can be free on 150mb app, and addressable features

-- Reply to this email directly or view it on GitHub: https://github.com/juicycleff/flutter-unity-view-widget/issues/799 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

najongjine commented 1 year ago

There is a project but it's in a preview state: https://github.com/UIWidgets/com.unity.uiwidgets The 150MB limit is going to be a hike for me. I have a large project already, and I'm adding a large Unity asset to it. On April 25, 2023 2:35:59 AM PDT, najongjine @.> wrote: Currently, I'm using flutter-unity widget in this way. Build unity app through flutter menu -> export (ios | anroid), then Build complete app through flutter build apk. So unity app is basically running on flutter. I want it in opposite way. Embed flutter app in unity and communicate eachother, so I can be free on 150mb app, and addressable features -- Reply to this email directly or view it on GitHub: #799 You are receiving this because you are subscribed to this thread. Message ID: @.>

Oh no... the doc is not english :(

Velek commented 1 year ago

On April 25, 2023 5:31:55 PM PDT, najongjine @.***> wrote:

There is a project but it's in a preview state: https://github.com/UIWidgets/com.unity.uiwidgets The 150MB limit is going to be a hike for me. I have a large project already, and I'm adding a large Unity asset to it

Oh no... the doc is not english :(

Yes, and it depends on an older Chinese version of Unity. But it's something. Also, all of your Dart code had to be translated to C#.

timbotimbo commented 1 year ago

Although an ingeresting idea, I don't think this is in the scope of this project.

It might be easier to create a UI library in Unity that somewhat resembles flutter, than actually embedding flutter into Unity on all different platforms.

Velek commented 1 year ago

On May 1, 2023 8:09:40 AM PDT, timbotimbo @.***> wrote:

Although an ingeresting idea, I don't think this is in the scope of this project.

It might be easier to create a UI library in Unity that somewhat resembles flutter, than actually embedding flutter into Unity on all different platforms.

It looks like they machine translated Flutter into C#. I'd almost prefer it to Dart, but I have a large project written in Dart that I'd like to be able to leverage. I've been refactoring my project so I can pass messages to Unity. Unfortunately it looks like the people in the project aren't interested in engaging in the outside world. Or at least they don't speak much other than Chinese. I'm almost conversational and almost semi literate in Mainland Chinese, but it's still too difficult for me. Plus they're depending on a fairly old and Chinese only version of Unity. Which brings up another problem that I don't know Ubity well enough at this point to be able to dig into it myself.