Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumGlobeAnchoredActorComponent.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
5#include "Components/ActorComponent.h"
6#include "CesiumGlobeAnchoredActorComponent.generated.h"
7
9
10UCLASS(ClassGroup = "Cesium", Abstract)
12 : public UActorComponent {
13 GENERATED_BODY()
14
15public:
16 UFUNCTION(BlueprintGetter)
17 UCesiumGlobeAnchorComponent* GetGlobeAnchor();
18
19protected:
20 virtual void OnRegister() override;
21 virtual void BeginPlay() override;
22
23private:
24 void ResolveGlobeAnchor();
25
26 // The globe anchor attached to the same Actor as this component. Don't
27 // save/load or copy this. It is set in BeginPlay and OnRegister.
28 UPROPERTY(
29 Category = "Cesium",
30 BlueprintReadOnly,
31 BlueprintGetter = GetGlobeAnchor,
32 Transient,
33 DuplicateTransient,
34 TextExportTransient,
35 Meta = (AllowPrivateAccess))
36 UCesiumGlobeAnchorComponent* GlobeAnchor;
37};
This component can be added to a movable actor to anchor it to the globe and maintain precise placeme...
virtual void OnRegister() override
Called when a component is registered.