Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumOriginShiftComponent.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
6#include "CoreMinimal.h"
7#include "CesiumOriginShiftComponent.generated.h"
8
10
15UENUM(BlueprintType)
44
63UCLASS(ClassGroup = "Cesium", Meta = (BlueprintSpawnableComponent))
64class CESIUMRUNTIME_API UCesiumOriginShiftComponent
66 GENERATED_BODY()
67
68#pragma region Properties
69private:
74 UPROPERTY(
75 EditAnywhere,
76 BlueprintReadWrite,
77 BlueprintGetter = GetMode,
78 BlueprintSetter = SetMode,
79 Category = "Cesium",
80 Meta = (AllowPrivateAccess))
82
92 UPROPERTY(
93 EditAnywhere,
94 BlueprintReadWrite,
95 BlueprintGetter = GetDistance,
96 BlueprintSetter = SetDistance,
97 Category = "Cesium",
98 Meta = (AllowPrivateAccess))
99 double Distance = 0.0;
100#pragma endregion
101
102#pragma region Property Accessors
103public:
108 UFUNCTION(BlueprintGetter)
109 ECesiumOriginShiftMode GetMode() const;
110
115 UFUNCTION(BlueprintSetter)
116 void SetMode(ECesiumOriginShiftMode NewMode);
117
127 UFUNCTION(BlueprintGetter)
128 double GetDistance() const;
129
139 UFUNCTION(BlueprintSetter)
140 void SetDistance(double NewDistance);
141#pragma endregion
142
143public:
145
146protected:
147 virtual void TickComponent(
148 float DeltaTime,
149 ELevelTick TickType,
150 FActorComponentTickFunction* ThisTickFunction) override;
151};
ECesiumOriginShiftMode
Indicates how to shift the origin as the Actor to which a CesiumOriginShiftComponent is attached move...
@ SwitchSubLevelsOnly
The origin of the CesiumGeoreference will be changed when the Actor enters a new sub-level,...
@ ChangeCesiumGeoreference
The origin of the CesiumGeoreference will change as the Actor moves in order to maintain small,...
@ Disabled
This component is disabled and will have no effect.
This component can be added to a movable actor to anchor it to the globe and maintain precise placeme...
Automatically shifts the origin of the Unreal world coordinate system as the object to which this com...
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override