Skip to content

Commit

Permalink
Put Docs Url in BeamEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Oct 30, 2024
1 parent e133ab9 commit 63270fd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Plugins/BeamableCore/Content/Environments/BeamDevEnv.uasset
Git LFS file not shown
4 changes: 2 additions & 2 deletions Plugins/BeamableCore/Content/Environments/BeamProdEnv.uasset
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class BEAMABLECORE_API UBeamEnvironmentData : public UDataAsset, public FJsonSer
FString SDKVersion;
UPROPERTY(EditAnywhere)
FString DockerRegistryUrl;
UPROPERTY(EditAnywhere)
FString DocsUrl;

UPROPERTY(EditAnywhere)
FBeamPackageVersion Version;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ void UBeamEditor::ClearBeamableWindowMessage()

void UBeamEditor::OpenDocsPage(FDocsPageItem item)
{
FString FullUri = FString("https://beamable.github.io/UnrealSDK/") + item.Path;
FString Docs = GetDefault<UBeamCoreSettings>()->BeamableEnvironment->DocsUrl;
if(Docs.IsEmpty())
{
Docs = FString("https://beamable.github.io/UnrealSDK/");
}
const FString FullUri = Docs + item.Path;
FPlatformProcess::LaunchURL(*FullUri, nullptr, nullptr);
}

Expand Down

0 comments on commit 63270fd

Please sign in to comment.