Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot Engine API for Dart and Flutter using "dart:ffi" #38303

Closed
iapicca opened this issue Sep 10, 2019 · 6 comments
Closed

Godot Engine API for Dart and Flutter using "dart:ffi" #38303

iapicca opened this issue Sep 10, 2019 · 6 comments

Comments

@iapicca
Copy link

iapicca commented Sep 10, 2019

As proposed to Godot,
an API that allows to use Godot engine on Dart and Flutter
would give a chance to Dart and Flutter developers to an easier experience
in game development with Flutter or Flutter Web.

@LikeLakers2
Copy link

LikeLakers2 commented Sep 10, 2019

Hi, I came here from the Godot proposal, referenced just above this comment.

It is possible to integrate Dart into Godot using bindings... though I advise you to learn how Godot works first, as the GDScript (and C#) language integrated into the engine may already be enough for what you need!

While I myself have no experience creating bindings, I can lead you to some resources that may help you create your own (mostly copy-pasted from here so this may not be quite up-to-date):

https://github.com/GodotNativeTools/godot_headers (important - this is what you'll use to make the bindings)
https://github.com/GodotNativeTools (everything from there except GDNative-demos and godot_headers is a binding -- you could study how those are done so you could figure out how to bind Dart)
https://github.com/ShadowApex/godot-go (existing binding)
https://github.com/SimulaVR/godot-haskell (existing binding)

There's also godotengine/godot-headers#36 (comment), which I think should give you a basic understanding of how to make a binding; you might also consider making a new issue there if you're still confused on how to create new bindings.

You might also benefit from asking for help on some of the community channels, if you're still having trouble.

I hope these resources help you!

@iapicca
Copy link
Author

iapicca commented Sep 11, 2019

Hi, I came here from the Godot proposal, referenced just above this comment.

It is possible to integrate Dart into Godot using bindings... though I advise you to learn how Godot works first, as the GDScript (and C#) language integrated into the engine may already be enough for what you need!

While I myself have no experience creating bindings, I can lead you to some resources that may help you create your own (mostly copy-pasted from here so this may not be quite up-to-date):

https://github.com/GodotNativeTools/godot_headers (important - this is what you'll use to make the bindings)
https://github.com/GodotNativeTools (everything from there except GDNative-demos and godot_headers is a binding -- you could study how those are done so you could figure out how to bind Dart)
https://github.com/ShadowApex/godot-go (existing binding)
https://github.com/SimulaVR/godot-haskell (existing binding)

There's also GodotNativeTools/godot_headers#36 (comment), which I think should give you a basic understanding of how to make a binding; you might also consider making a new issue there if you're still confused on how to create new bindings.

You might also benefit from asking for help on some of the community channels, if you're still having trouble.

I hope these resources help you!

I imagine it more like a plugin that allows Godot to render inside a flutter widget tree:
Flutter App => Plugin (Godot Engine + Dart:ffi interface) => Flutter Widget Tree => Godot Inside a Widget

@mraleph
Copy link
Member

mraleph commented Sep 11, 2019

@iapicca Thanks for taking a time to file an issue and your interest in dart:ffi.

I am not entirely sure I understand correctly what is expected from the Dart team here: if it is a request for the Dart team to provide bindings to Godot, then unfortunately this is unlikely to happen because we don't really have enough resources for that. Which means you have to take on this task yourself or rally the community.

On the other hand if you start using dart:ffi and discover some ergonomic issues which makes it harder to use it, then please do file issues about those problems that you encounter.

@mraleph mraleph closed this as completed Sep 11, 2019
@JOELwindows7
Copy link

JOELwindows7 commented Mar 11, 2020

Sorry for talking in a closed issue but, everyone, please wake up!

Somebody did implement Unity in Flutter!!!

https://github.com/snowballdigital/flutter-unity-view-widget

Demonstration video: https://youtu.be/exNPmv_7--Q

Don't let us defeat!

@kyadalu1
Copy link

kyadalu1 commented Jan 6, 2024

Check this & this

@JOELwindows7
Copy link

Check this & this

found new issue to mention in desc: m4gr3d/Godot-Android-Samples#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants