46UCLASS(ClassGroup = (Cesium),
meta = (BlueprintSpawnableComponent))
47class CESIUMRUNTIME_API UCesiumSubLevelComponent :
public UActorComponent {
59 UFUNCTION(BlueprintGetter, Category =
"Cesium")
60 bool GetEnabled()
const;
70 UFUNCTION(BlueprintSetter, Category =
"Cesium")
71 void SetEnabled(
bool value);
78 UFUNCTION(BlueprintGetter, Category =
"Cesium")
79 double GetOriginLongitude()
const;
86 UFUNCTION(BlueprintSetter, Category =
"Cesium")
87 void SetOriginLongitude(
double value);
94 UFUNCTION(BlueprintGetter, Category =
"Cesium")
95 double GetOriginLatitude()
const;
102 UFUNCTION(BlueprintSetter, Category =
"Cesium")
103 void SetOriginLatitude(
double value);
111 UFUNCTION(BlueprintGetter, Category =
"Cesium")
112 double GetOriginHeight()
const;
120 UFUNCTION(BlueprintSetter, Category =
"Cesium")
121 void SetOriginHeight(
double value);
127 UFUNCTION(BlueprintGetter, Category =
"Cesium")
128 double GetLoadRadius()
const;
134 UFUNCTION(BlueprintSetter, Category =
"Cesium")
135 void SetLoadRadius(
double value);
146 UFUNCTION(BlueprintGetter, Category =
"Cesium")
147 TSoftObjectPtr<ACesiumGeoreference> GetGeoreference()
const;
158 UFUNCTION(BlueprintSetter, Category =
"Cesium")
159 void SetGeoreference(TSoftObjectPtr<ACesiumGeoreference> NewGeoreference);
166 UFUNCTION(BlueprintGetter, Category =
"Cesium")
176 UFUNCTION(BlueprintCallable, Category =
"Cesium")
186 UFUNCTION(BlueprintCallable, Category =
"Cesium")
187 void SetOriginLongitudeLatitudeHeight(
const FVector& longitudeLatitudeHeight);
205 UFUNCTION(CallInEditor, Category =
"Cesium")
206 void PlaceGeoreferenceOriginAtSubLevelOrigin();
229 UFUNCTION(CallInEditor, Category =
"Cesium")
230 void PlaceGeoreferenceOriginHere();
237 void UpdateGeoreferenceIfSubLevelIsActive();
239 virtual void BeginDestroy()
override;
240 virtual void OnComponentCreated()
override;
244 PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
override;
248 virtual void BeginPlay()
override;
257 virtual void OnRegister()
override;
266 virtual void OnUnregister()
override;
274 virtual bool CanEditChange(
const FProperty* InProperty)
const override;
290 BlueprintGetter = GetEnabled,
291 BlueprintSetter = SetEnabled,
292 meta = (AllowPrivateAccess =
true))
304 BlueprintGetter = GetOriginLatitude,
305 BlueprintSetter = SetOriginLatitude,
306 meta = (ClampMin = -90.0, ClampMax = 90.0, AllowPrivateAccess =
true))
307 double OriginLatitude = 39.736401;
318 BlueprintGetter = GetOriginLongitude,
319 BlueprintSetter = SetOriginLongitude,
320 meta = (ClampMin = -180.0, ClampMax = 180.0, AllowPrivateAccess =
true))
321 double OriginLongitude = -105.25737;
333 BlueprintGetter = GetOriginHeight,
334 BlueprintSetter = SetOriginHeight,
335 meta = (AllowPrivateAccess =
true))
336 double OriginHeight = 2250.0;
346 BlueprintGetter = GetLoadRadius,
347 BlueprintSetter = SetLoadRadius,
348 meta = (ClampMin = 0.0, AllowPrivateAccess =
true))
349 double LoadRadius = 1000.0;
363 BlueprintGetter = GetGeoreference,
364 BlueprintSetter = SetGeoreference,
366 Meta = (AllowPrivateAccess))
367 TSoftObjectPtr<ACesiumGeoreference> Georeference;
381 BlueprintGetter = GetResolvedGeoreference,
383 Meta = (AllowPrivateAccess))
398 ALevelInstance* _getLevelInstance()
const noexcept;
405 void _invalidateResolvedGeoreference();
407 void PlaceOriginAtEcef(
const FVector& NewOriginEcef);