Navigation
API > API/Runtime > API/Runtime/Engine
A simple arrow rendered using lines. Useful for indicating which way an object is facing.
| Name | UArrowComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/ArrowComponent.h |
| Include Path | #include "Components/ArrowComponent.h" |
Syntax
UCLASS (ClassGroup=Utility,
HideCategories=(Object, LOD, Physics, Lighting, TextureStreaming, Activation, "Components|Activation", Collision),
EditInlineNew, Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UArrowComponent : public UPrimitiveComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UArrowComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UArrowComponent
(
const FObjectInitializer& ObjectInitializer |
Components/ArrowComponent.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| EditorScale | float | The scale we use when rendering in-editor | Components/ArrowComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArrowColor | FColor | Color to draw arrow | Components/ArrowComponent.h |
|
| ArrowLength | float | Total length of drawn arrow including head | Components/ArrowComponent.h |
|
| ArrowSize | float | Relative size to scale drawn arrow by | Components/ArrowComponent.h |
|
| bIsScreenSizeScaled | uint8 | Set to limit the screen size of this arrow | Components/ArrowComponent.h |
|
| bLightAttachment | uint32 | If true, this arrow component is attached to a light actor | Components/ArrowComponent.h | |
| bTreatAsASprite | uint8 | If true, don't show the arrow when EngineShowFlags.BillboardSprites is disabled. | Components/ArrowComponent.h |
|
| bUseInEditorScaling | bool | Whether to use in-editor arrow scaling (i.e. to be affected by the global arrow scale) | Components/ArrowComponent.h |
|
| ScreenSize | float | The size on screen to limit this arrow to (in screen space) | Components/ArrowComponent.h |
|
| SpriteInfo | FSpriteCategoryInfo | Sprite category information regarding the arrow component, if being treated as a sprite. | Components/ArrowComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetArrowColor
(
FLinearColor NewColor |
Updates the arrow's colour, and tells it to refresh | Components/ArrowComponent.h |
|
void SetArrowFColor
(
FColor NewColor |
Components/ArrowComponent.h |
|
|
void SetArrowLength
(
float NewLength |
Components/ArrowComponent.h |
|
|
void SetArrowSize
(
float NewSize |
Components/ArrowComponent.h |
|
|
void SetIsScreenSizeScaled
(
bool bNewValue |
Components/ArrowComponent.h |
|
|
void SetScreenSize
(
float NewScreenSize |
Components/ArrowComponent.h |
|
|
void SetTreatAsASprite
(
bool bNewValue |
Components/ArrowComponent.h |
|
|
void SetUseInEditorScaling
(
bool bNewValue |
Components/ArrowComponent.h |
|
Overridden from UPrimitiveComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ComponentIsTouchingSelectionBox
(
const FBox& InSelBBox, |
Determines whether the supplied bounding box intersects with the component. | Components/ArrowComponent.h | |
virtual bool ComponentIsTouchingSelectionFrustum
(
const FConvexVolume& InFrustum, |
Determines whether the supplied frustum intersects with the component. | Components/ArrowComponent.h | |
virtual FPrimitiveSceneProxy * CreateSceneProxy() |
Creates a proxy to represent the primitive to the scene manager in the rendering thread. | Components/ArrowComponent.h |
Overridden from USceneComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBoxSphereBounds CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. | Components/ArrowComponent.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void SetEditorScale
(
float InEditorScale |
Set the scale that we use when rendering in-editor | Components/ArrowComponent.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SpriteCategoryName_DEPRECATED | FName | Sprite category that the arrow component belongs to, if being treated as a sprite. | Components/ArrowComponent.h |