![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Serneum |
I currently have a project that has a RichTextLabel
that displays text. Some of the text we display has BBCode for URLs ([url=someUrl]Text[/url]
) and then we have a script on the node containing the label:
func _on_text_meta_clicked(meta):
OS.shell_open(meta)
The label has a connection to that method and it works wonderfully when we run the project directly from the Godot editor or from a runnable .dmg
file on our Macs. I exported the project to HTML5, uploaded it to a server, and noticed that the links do not work. I’m assuming the issue is the reliance on OS
, but would like to have this work in both cases. Is there another class I can use and a method I can call to check how the project is running to see if I should use OS
or the other class at runtime?