Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UArrowComponent
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Components/ArrowComponent.h |
Include | #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
Remarks
A simple arrow rendered using lines. Useful for indicating which way an object is facing.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() ![]() |
FColor | ArrowColor | Color to draw arrow |
![]() ![]() ![]() ![]() ![]() |
float | ArrowLength | Total length of drawn arrow including head |
![]() ![]() ![]() ![]() ![]() |
float | ArrowSize | Relative size to scale drawn arrow by |
![]() ![]() ![]() ![]() ![]() |
uint8: 1 | bIsScreenSizeScaled | Set to limit the screen size of this arrow |
![]() ![]() |
uint32: 1 | bLightAttachment | If true, this arrow component is attached to a light actor |
![]() ![]() ![]() ![]() ![]() |
uint8: 1 | bTreatAsASprite | If true, don't show the arrow when EngineShowFlags.BillboardSprites is disabled. |
![]() ![]() ![]() ![]() ![]() |
bool | bUseInEditorScaling | Whether to use in-editor arrow scaling (i.e. to be affected by the global arrow scale) |
![]() ![]() ![]() ![]() ![]() |
float | ScreenSize | The size on screen to limit this arrow to (in screen space) |
![]() ![]() |
FSpriteCategoryInfo | SpriteInfo | Sprite category information regarding the arrow component, if being treated as a sprite. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UArrowComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() ![]() |
void | SetArrowColor
(
FLinearColor NewColor |
Updates the arrow's colour, and tells it to refresh |
![]() ![]() ![]() ![]() |
void | SetArrowFColor
(
FColor NewColor |
|
![]() ![]() ![]() ![]() |
void | SetArrowLength
(
float NewLength |
|
![]() ![]() ![]() ![]() |
void | SetArrowSize
(
float NewSize |
|
![]() ![]() |
void | SetEditorScale
(
float InEditorScale |
Set the scale that we use when rendering in-editor |
![]() ![]() ![]() ![]() |
void | SetIsScreenSizeScaled
(
bool bNewValue |
|
![]() ![]() ![]() ![]() |
void | SetScreenSize
(
float NewScreenSize |
|
![]() ![]() ![]() ![]() |
void | SetTreatAsASprite
(
bool bNewValue |
|
![]() ![]() ![]() ![]() |
void | SetUseInEditorScaling
(
bool bNewValue |
Overridden from UPrimitiveComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | ComponentIsTouchingSelectionBox
(
const FBox& InSelBBox, |
Determines whether the supplied bounding box intersects with the component. |
![]() ![]() ![]() |
bool | ComponentIsTouchingSelectionFrustum
(
const FConvexVolume& InFrustum, |
Determines whether the supplied frustum intersects with the component. |
![]() ![]() |
FPrimitiveSceneProxy * | Creates a proxy to represent the primitive to the scene manager in the rendering thread. |
Overridden from USceneComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FBoxSphereBounds | CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. |
Constants
Name | Description |
---|---|
EditorScale | The scale we use when rendering in-editor |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FName | SpriteCategoryName_DEPRECATED | Sprite category that the arrow component belongs to, if being treated as a sprite. |