初始提交: UE5.3项目基础框架

This commit is contained in:
2025-10-14 11:14:54 +08:00
commit 721d9fd98e
5334 changed files with 316782 additions and 0 deletions

View File

@ -0,0 +1,70 @@
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
#pragma once
#include "CesiumRasterOverlay.h"
#include "CoreMinimal.h"
#include "CesiumIonRasterOverlay.generated.h"
class UCesiumIonServer;
/**
* A raster overlay that uses an IMAGERY asset from Cesium ion.
*/
UCLASS(
DisplayName = "Cesium ion Raster Overlay",
ClassGroup = (Cesium),
meta = (BlueprintSpawnableComponent))
class CESIUMRUNTIME_API UCesiumIonRasterOverlay : public UCesiumRasterOverlay {
GENERATED_BODY()
public:
/**
* The ID of the Cesium ion asset to use.
*
* If this property is non-zero, the Bing Maps Key and Map Style properties
* are ignored.
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
int64 IonAssetID;
/**
* The access token to use to access the Cesium ion resource.
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
FString IonAccessToken;
/**
* The URL of the ion asset endpoint. Defaults to Cesium ion but a custom
* endpoint can be specified.
*/
UPROPERTY(
meta =
(DeprecatedProperty,
DeprecationMessage = "Use CesiumIonServer instead."))
FString IonAssetEndpointUrl_DEPRECATED;
/**
* The Cesium ion Server from which this raster overlay is loaded.
*/
UPROPERTY(
EditAnywhere,
BlueprintReadWrite,
Category = "Cesium",
AdvancedDisplay)
UCesiumIonServer* CesiumIonServer;
/**
* Check if the Cesium ion token used to access this raster overlay is working
* correctly, and fix it if necessary.
*/
UFUNCTION(CallInEditor, Category = "Cesium")
void TroubleshootToken();
// UActorComponent overrides
virtual void PostLoad() override;
protected:
virtual std::unique_ptr<CesiumRasterOverlays::RasterOverlay> CreateOverlay(
const CesiumRasterOverlays::RasterOverlayOptions& options = {}) override;
};