Skip to content

Commit

Permalink
Fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread authored Apr 29, 2024
1 parent 4055fb2 commit 1e6680d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/projects/godot-android-webview/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ By creating a [Godot Android plugin](https://docs.godotengine.org/en/stable/tuto

The code for this PoC can be seen in the [initial state](https://github.com/toasterofbread/godot-compose-example/tree/8dbbb33eb4c6f7c86c8bb958699be53da197be21) of the example repository.

![](images/webview.png)
![](/projects/godot-android-webview/images/webview.png)

4. Rendering a view with Jetpack Compose content

It was at that point when I realised that if I was able to display arbitrary Android view content as a Godot node, I could just compile my Compose project as an Android library and render it through the Godot plugin that way. Wish I'd thought of it earlier, but better late than never.

From there, I swapped the webview out for some Compose UI, then added code to forward any mouse/touch inputs on the Godot node to the Android view (which was surprisingly easy, although I haven't tested swipe gestures yet), and got everything working without much trouble.

<image src="images/compose.png" height=500>
![](/projects/godot-android-webview/images/compose.png)

0 comments on commit 1e6680d

Please sign in to comment.