Cesium for Unreal 2.15.0
Loading...
Searching...
No Matches
CesiumSubLevel.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include "CesiumSubLevel.generated.h"
8
9class ULevelStreaming;
10
11struct UE_DEPRECATED(
12 5.0,
13 "The FCesiumSubLevel struct has been deprecated. Use Level Instance Actors and UCesiumSubLevelComponent instead.")
15
16/*
17 * Sublevels can be georeferenced to the globe by filling out this struct.
18 */
19USTRUCT()
21 GENERATED_BODY()
22
23 /**
24 * The plain name of the sub level, without any prefixes.
25 */
26 UPROPERTY(VisibleAnywhere, Category = "Cesium")
27 FString LevelName;
28
29 /**
30 * Whether this sub-level is enabled. An enabled sub-level will be
31 * automatically loaded when the camera moves within its LoadRadius and
32 * no other levels are closer, and the Georeference will be updated so that
33 * this level's Longitude, Latitude, and Height bcome (0, 0, 0) in the Unreal
34 * World. A sub-level that is not enabled will be ignored by Cesium.
35 *
36 * If this option is greyed out, check that World Composition is enabled
37 * in the World Settings and that this sub-level is in a Layer that has
38 * Distance-based streaming DISABLED.
39 */
40 UPROPERTY(
41 EditAnywhere,
42 Category = "Cesium",
43 Meta = (EditCondition = "CanBeEnabled"))
44 bool Enabled = true;
45
46 /**
47 * The WGS84 latitude in degrees of where this level should sit on the globe,
48 * in the range [-90, 90]
49 */
50 UPROPERTY(
51 EditAnywhere,
52 Category = "Cesium",
53 meta = (ClampMin = -90.0, ClampMax = 90.0, EditCondition = "Enabled"))
54 double LevelLatitude = 0.0;
55
56 /**
57 * The WGS84 longitude in degrees of where this level should sit on the
58 * globe, in the range [-180, 180]
59 */
60 UPROPERTY(
61 EditAnywhere,
62 Category = "Cesium",
63 meta = (ClampMin = -180.0, ClampMax = 180.0, EditCondition = "Enabled"))
64 double LevelLongitude = 0.0;
65
66 /**
67 * The height in meters above the WGS84 globe this level should sit.
68 */
69 UPROPERTY(
70 EditAnywhere,
71 Category = "Cesium",
72 meta = (EditCondition = "Enabled"))
73 double LevelHeight = 0.0;
74
75 /**
76 * How far in meters from the sublevel local origin the camera needs to be to
77 * load the level.
78 */
79 UPROPERTY(
80 EditAnywhere,
81 Category = "Cesium",
82 meta = (ClampMin = 0.0, EditCondition = "Enabled"))
83 double LoadRadius = 0.0;
84
85 UPROPERTY(VisibleDefaultsOnly, Category = "Cesium")
86 bool CanBeEnabled = false;
87};
double LevelLatitude
The WGS84 latitude in degrees of where this level should sit on the globe, in the range [-90,...
bool Enabled
Whether this sub-level is enabled.
double LevelLongitude
The WGS84 longitude in degrees of where this level should sit on the globe, in the range [-180,...
double LevelHeight
The height in meters above the WGS84 globe this level should sit.
double LoadRadius
How far in meters from the sublevel local origin the camera needs to be to load the level.
FString LevelName
The plain name of the sub level, without any prefixes.