UKismetSystemLibrary::CanLaunchURL
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Returns whether the current platform is able to launch the given URL in a browser.
Caveats & Gotchas
- • Checks platform capability only — it does not validate the URL's syntax or reachability, and doesn't apply any domain allowlist like LaunchExternalUrl.
- • A true result doesn't guarantee LaunchURL will succeed at the point you actually call it (e.g. no network, browser closed by user), since this is a capability check, not a live connectivity test.
- • Useful for hiding or disabling "open in browser" UI on platforms (consoles, some mobile configurations) where URL launching isn't supported at all.
Signature
static bool CanLaunchURL(const FString& URL) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| URL | const FString& | The URL to check for launchability. | — |
Return Type
bool Example
Only show a browser-launch button if supported C++
if (UKismetSystemLibrary::CanLaunchURL(SupportUrl))
{
UKismetSystemLibrary::LaunchURL(SupportUrl);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?