Adding a Link to a Link Button

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ThreeSpark

So I want to add a link to a link button, but I don’t know how. What line(s) of code do I write, and where do I write them? Thanks!

:bust_in_silhouette: Reply From: kidscancode

You can put whatever text on the button you like.

To have it open a URL on click, you need to connect the “pressed” signal, and useOS.shell_open() to open the browser to the url.

See OS — Godot Engine (3.0) documentation in English for details.

1 Like