A button that represents a link.
A button that represents a link. This type of button is primarily used for interactions that cause a context change (like linking to a web page).
See also BaseButton which contains common properties and methods associated with this node.
Language code used for line-breaking and text shaping algorithms. If left empty, the current locale is used instead.
The URI for this LinkButton. If set to a valid URI, pressing the button opens the URI using the operating system's default program for the protocol (via OS.shell_open()). HTTP and HTTPS URLs open the default web browser.
uri = "https://godotengine.org" # Opens the URL in the default web browser.
uri = "C:\SomeFolder" # Opens the file explorer at the given path.
uri = "C:\SomeImage.png" # Opens the given image in the default viewing app.UNDERLINE_MODE_ALWAYS = 0The LinkButton will always show an underline at the bottom of its text.
UNDERLINE_MODE_ON_HOVER = 1The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it.
UNDERLINE_MODE_NEVER = 2The LinkButton will never show an underline at the bottom of its text.