Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumIonServer.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
5#include "Engine/DataAsset.h"
6#include "UObject/Object.h"
7#include "CesiumIonServer.generated.h"
8
9namespace CesiumAsync {
10template <typename T> class Future;
11}
12
17UCLASS()
18class CESIUMRUNTIME_API UCesiumIonServer : public UDataAsset {
19 GENERATED_BODY()
20
21public:
32
40
46
47#if WITH_EDITOR
53 static UCesiumIonServer* GetBackwardCompatibleServer(const FString& apiUrl);
54#endif
55
59 UPROPERTY(
60 EditAnywhere,
61 AssetRegistrySearchable,
62 Category = "Cesium",
63 meta = (DisplayName = "Display Name"))
64 FString DisplayName = "ion.cesium.com";
65
70 UPROPERTY(
71 EditAnywhere,
72 AssetRegistrySearchable,
73 Category = "Cesium",
74 meta = (DisplayName = "Server URL"))
75 FString ServerUrl = "https://ion.cesium.com";
76
82 UPROPERTY(
83 EditAnywhere,
84 AssetRegistrySearchable,
85 Category = "Cesium",
86 meta = (DisplayName = "API URL"))
87 FString ApiUrl = "https://api.cesium.com";
88
94 UPROPERTY(
95 EditAnywhere,
96 AssetRegistrySearchable,
97 Category = "Cesium",
98 meta = (DisplayName = "OAuth Application ID"))
99 int64 OAuth2ApplicationID = 190;
100
107 UPROPERTY(
108 EditAnywhere,
109 Category = "Cesium",
110 meta = (DisplayName = "Default Cesium ion Access Token ID"))
111 FString DefaultIonAccessTokenId;
112
117 UPROPERTY(
118 EditAnywhere,
119 AssetRegistrySearchable,
120 Category = "Cesium",
121 meta = (DisplayName = "Default Cesium ion Access Token"))
122 FString DefaultIonAccessToken;
123
124#if WITH_EDITOR
130 CesiumAsync::Future<void> ResolveApiUrl();
131#endif
132
133private:
134 static UCesiumIonServer* _pDefaultForNewObjects;
135};
Defines a Cesium ion Server.
static UCesiumIonServer * GetDefaultServer()
Gets the default Cesium ion Server (ion.cesium.com).
static void SetServerForNewObjects(UCesiumIonServer *Server)
Sets the current server to be assigned to new objects.
static UCesiumIonServer * GetServerForNewObjects()
Gets the current server to be assigned to new objects.