5#include "CoreMinimal.h"
6#include "Components/ActorComponent.h"
7#include "GameFramework/Actor.h"
8#include "TransformWidgetComponent.generated.h"
11UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
12class DESKSIMV2_API UTransformWidgetComponent :
public UActorComponent
18 UTransformWidgetComponent();
22 virtual
void BeginPlay() override;
26 virtual
void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
29 UStaticMeshComponent* OriginSphere;
31 UPROPERTY(VisibleAnywhere)
32 UStaticMeshComponent* ArrowX;
33 UPROPERTY(VisibleAnywhere)
34 UStaticMeshComponent* ArrowY;
35 UPROPERTY(VisibleAnywhere)
36 UStaticMeshComponent* ArrowZ;
39 bool bSelected = false;
40 EAxis::Type SelectedAxis = EAxis::None;