ralpha-assets/Plugins/CesiumForUnreal/Source/CesiumRuntime/Public/CesiumGlobeAnchoredActorCom...

38 lines
1002 B
C++

// Copyright 2020-2024 CesiumGS, Inc. and Contributors
#pragma once
#include "Components/ActorComponent.h"
#include "CesiumGlobeAnchoredActorComponent.generated.h"
class UCesiumGlobeAnchorComponent;
UCLASS(ClassGroup = "Cesium", Abstract)
class CESIUMRUNTIME_API UCesiumGlobeAnchoredActorComponent
: public UActorComponent {
GENERATED_BODY()
public:
UFUNCTION(BlueprintGetter)
UCesiumGlobeAnchorComponent* GetGlobeAnchor();
protected:
virtual void OnRegister() override;
virtual void BeginPlay() override;
private:
void ResolveGlobeAnchor();
// The globe anchor attached to the same Actor as this component. Don't
// save/load or copy this. It is set in BeginPlay and OnRegister.
UPROPERTY(
Category = "Cesium",
BlueprintReadOnly,
BlueprintGetter = GetGlobeAnchor,
Transient,
DuplicateTransient,
TextExportTransient,
Meta = (AllowPrivateAccess))
UCesiumGlobeAnchorComponent* GlobeAnchor;
};