Is it possible to combine android studio view (frameLayout) and my Godot UI display?
Good afternoon. Could you please suggest a solution where I can use View from android studio along with godot scene tree? Let me describe the situation:
I'm trying to combine google map and godot UI (plugin for godot). Using shouldBeOnTop() it is possible to put the map on top, which overlaps the interface created in godot - not suitable. If it specify false - shouldBeOnTop(), then the view goes under the viewport of godot, and it is not visible even if i set all possible flags transparent in the project settings (simply remains black background) when running on android.
Is there a solution where I can combine the google map together with the scene tree or display the view under the UI elements? Thanks.
godot 4.2.1 Android Studio
I used it like that:
@Override
override fun shouldBeOnTop(): Boolean {
return false //rue
}
@Override
override fun onMainCreate(activity: Activity?): View? {
GoogleMapsApi.layout = FrameLayout(activity!!)
return GoogleMapsApi.layout
}
Are you trying to embed Godot view in androdi project or android view in Godot project?
Are you trying to embed Godot view in androdi project or android view in Godot project?
Android view as a plugin with godot view. Ideally, it would be great if i could make the viewport background transparent, but in many of the rendering modes with the right settings and all possible combinations did not work for me. On windows transparency works, on android it doesn't. That's why i need a way to combine plugin android with view and my Godot UI
Check this