UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoRectangleComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "GizmoRectangleComponent.generated.h"
9
16{
18
19public:
20 UPROPERTY(EditAnywhere, Category = Options)
21 FVector DirectionX = FVector(0, 0, 1);
22
23 UPROPERTY(EditAnywhere, Category = Options)
24 FVector DirectionY = FVector(0, 1, 0);
25
26 // When true, instead of using the provided DirectionY, the component will
27 // use a direction orthogonal to the camera direction and DirectionX. This
28 // keeps the rectangle pinned along DirectionX but spun to be flatter
29 // relative the camera.
30 UPROPERTY(EditAnywhere, Category = Options)
31 bool bOrientYAccordingToCamera = false;
32
33 UPROPERTY(EditAnywhere, Category = Options)
34 float OffsetX = 0.0f;
35
36 UPROPERTY(EditAnywhere, Category = Options)
37 float OffsetY = 0.0f;
38
39 UPROPERTY(EditAnywhere, Category = Options)
40 float LengthX = 20.0f;
41
42 UPROPERTY(EditAnywhere, Category = Options)
43 float LengthY = 20.0f;
44
45 UPROPERTY(EditAnywhere, Category = Options)
46 float Thickness = 2.0f;
47
48 UPROPERTY(EditAnywhere, Category = Options)
49 uint8 SegmentFlags = 0x1 | 0x2 | 0x4 | 0x8;
50
52 //~ Begin UPrimitiveComponent Interface.
54 INTERACTIVETOOLSFRAMEWORK_API virtual bool LineTraceComponent(FHitResult& OutHit, const FVector Start, const FVector End, const FCollisionQueryParams& Params) override;
56 //~ End UPrimitiveComponent Interface.
57
58 //~ Begin USceneComponent Interface.
59 INTERACTIVETOOLSFRAMEWORK_API virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
60 //~ Begin USceneComponent Interface.
61};
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 GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition PrimitiveSceneProxy.h:296
Definition Array.h:670
Definition GizmoBaseComponent.h:43
Definition GizmoRectangleComponent.h:16
Definition MaterialInterface.h:296
@ false
Definition radaudio_common.h:23
Definition CollisionQueryParams.h:43
Definition HitResult.h:21
Definition BoxSphereBounds.h:25