-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
[3.2] Godot Android Subview Implementation #42186
Conversation
Thank you! This is probably one of the best features for Android at the moment! <3 |
Thanks! |
Deleted 3.2-android-subview Godot branch as well. |
@m4gr3d thanks for the great work! I'm hoping to use this to include a minigame in an existing app I wrote. Do you have any tips on how I can use your modifications? I built the 3.2 branch (150f9ce) from github for mac (so it should include these changes) and also the android libraries which allowed me to deploy the game on my Pixel 3 phone. My only confusion is how to use it as a subview as the Godot interface only seem to give me export options for APK or AAB. Is there a way to use it as a library module or does this patch create a separate activity that I should bundle with my existing app (manually copy the *.so / gscript files?) |
@falcon4ever I'm working on a write-up for how to use the capability for when this version goes stable. I'll share it early when it's in a decent state. Just to confirm, are you using Android Studio to develop and build your existing app? |
Thanks! Yes I'm using Android Studio to build the existing app. I have some experience with the NDK/jni (I used to port openFramework apps to Android) and was hoping to see if Godot works in a similar way. Basically if it exports to a separate Android Studio project I would be all set (assuming it's a matter of merging the Godot activity/fragment, game scripts & assets and the *.so files in libs). |
@falcon4ever Hi, I'm currently looking at this feature now, and I made android project (which can be opened by android studio), from godot editor and it launches fine. But, after that, I'm look for how can I make subview godot scene with this feature and how can I make insert event to game from the android code and get event from the godot to android. Do you have any rough documents for this? I can't find any of those for now. |
@wangmir A set of instructions will be provided when Godot 3.3 is near stable for how to leverage the feature. |
@wangmir Unfortunately I didn't have time to continue figuring out how to insert the code into my existing project (AS Arctic Fox 2020.3.1 Canary 11). |
Good to hear that :) I'll wait for that! Anyway, can I test 3.3 feature that u mentioned at the 3.3 branch too for now? |
@m4gr3d I am looking for the documentation of this implementation, but I have not found it. Who can help me? I'm very anxious to implement this in my android project,thank you! |
@humbinal me too. Did you find a clue ? |
Please continue the discussion in godotengine/godot-docs#4018. |
Now that version 3.2.3 is released(!), this PR proceeds to merge the Godot Android subview implementation back into the 3.2 branch for release for Godot v3.2.4.
The feature addresses godotengine/godot-proposals#1064 and enables the ability to embed Godot as a subview within an Android app/game.
Note: The feature is already within the main branch.