UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ArrowComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
9#include "ArrowComponent.generated.h"
10
12struct FConvexVolume;
13struct FEngineShowFlags;
14
18UCLASS(ClassGroup=Utility, hidecategories=(Object,LOD,Physics,Lighting,TextureStreaming,Activation,"Components|Activation",Collision), editinlinenew, meta=(BlueprintSpawnableComponent), MinimalAPI)
19class UArrowComponent : public UPrimitiveComponent
20{
22
23
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetArrowFColor, Category=ArrowComponent)
25 FColor ArrowColor;
26
28 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetArrowSize, Category=ArrowComponent)
29 float ArrowSize;
30
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetArrowLength, Category=ArrowComponent)
33 float ArrowLength;
34
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetScreenSize, Category = ArrowComponent)
37 float ScreenSize;
38
40 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetIsScreenSizeScaled, Category=ArrowComponent)
41 uint8 bIsScreenSizeScaled : 1;
42
44 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetTreatAsASprite, Category=ArrowComponent)
46
47#if WITH_EDITORONLY_DATA
49 UPROPERTY()
51
53 UPROPERTY()
55
57 UPROPERTY()
59
61 UPROPERTY(EditAnywhere, BlueprintReadWrite, BlueprintSetter=SetUseInEditorScaling, Category=ArrowComponent)
63#endif // WITH_EDITORONLY_DATA
65 UFUNCTION(BlueprintCallable, DisplayName="Set Arrow Color (Linear Color)", Category="Components|Arrow")
66 ENGINE_API virtual void SetArrowColor(FLinearColor NewColor);
67
68 UFUNCTION(BlueprintSetter, Category=ArrowComponent)
69 ENGINE_API void SetArrowFColor(FColor NewColor);
70
71 UFUNCTION(BlueprintSetter, Category=ArrowComponent)
72 ENGINE_API void SetArrowSize(float NewSize);
73
74 UFUNCTION(BlueprintSetter, Category=ArrowComponent)
76
77 UFUNCTION(BlueprintSetter, Category=ArrowComponent)
79
80 UFUNCTION(BlueprintSetter, Category=ArrowComponent)
82
83 UFUNCTION(BlueprintSetter, Category=ArrowComponent)
85
86 UFUNCTION(BlueprintSetter, Category = ArrowComponent)
88
89 //~ Begin UPrimitiveComponent Interface.
90 ENGINE_API virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
91#if WITH_EDITOR
92 ENGINE_API virtual bool ComponentIsTouchingSelectionBox(const FBox& InSelBBox, const bool bConsiderOnlyBSP, const bool bMustEncompassEntireComponent) const override;
94#endif
95 //~ End UPrimitiveComponent Interface.
96
97 //~ Begin USceneComponent Interface.
98 ENGINE_API virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
99 //~ Begin USceneComponent Interface.
100
101#if WITH_EDITORONLY_DATA
103 static ENGINE_API void SetEditorScale(float InEditorScale);
104
106 static ENGINE_API float EditorScale;
107#endif
108};
109
110
111
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition PrimitiveSceneProxy.h:296
ENGINE_API FBox CalcBounds(const FVector &P0, const FVector &P1, const FVector &P2, const FVector &P3)
Definition BezierUtilities.cpp:26
Definition Color.h:486
Definition ConvexVolume.h:44
Definition ShowFlags.h:56
Definition Color.h:48
Definition PrimitiveComponent.h:84
Definition BoxSphereBounds.h:25