this is an addon designed to let developers add a custom http interface which would allow them to be able to control their godot application remotely, via the web!
- copy this repo
git clone https://github.com/CrazyKitty357/godotwebapi.git- or
https://github.com/CrazyKitty357/godotwebapi/archive/refs/heads/main.zip1.5. if downloaded via link unzip the file
- move
webapifolder that's inaddonsto theaddonsfolder of your project - move
addons/webapi/script_templatestores:// - enable the addon
- make
res://addons/webapi/webserver.gdan autoload - add a
WebAPInode to your scene of choice - extend the WebAPI node (right click the node -> Extend Script...)
- click on the dropdown by
Template, you should see a new template underProject TemplatescalledWebAPI: Template. - click on
Create. - edit the match statement to fit your needs.
- start the project.
- go to http://localhost:60407 (named that way because it looks a bit like the word godot) in your web browser and you should see the request go through.