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
8
class
UCesiumGlobeAnchorComponent
;
9
10
UCLASS(ClassGroup =
"Cesium"
, Abstract)
11
class CESIUMRUNTIME_API
UCesiumGlobeAnchoredActorComponent
12
: public UActorComponent {
13
GENERATED_BODY()
14
15
public
:
16
UFUNCTION(BlueprintGetter)
17
UCesiumGlobeAnchorComponent
* GetGlobeAnchor();
18
19
protected:
20
virtual
void
OnRegister
() override;
21
virtual
void
BeginPlay() override;
22
23
private:
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
};
Meta
Meta
Definition
CesiumFeaturesMetadataComponent.h:326
UCesiumGlobeAnchorComponent
This component can be added to a movable actor to anchor it to the globe and maintain precise placeme...
Definition
CesiumGlobeAnchorComponent.h:21
UCesiumGlobeAnchorComponent::OnRegister
virtual void OnRegister() override
Called when a component is registered.
UCesiumGlobeAnchoredActorComponent
Definition
CesiumGlobeAnchoredActorComponent.h:12
Source
CesiumRuntime
Public
CesiumGlobeAnchoredActorComponent.h
Generated by
1.12.0