UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PrimitiveComponentToolTarget.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"
6
9
10#include "PrimitiveComponentToolTarget.generated.h"
11
16UCLASS(Transient, MinimalAPI)
18{
20public:
21
22 // UToolTarget
23 INTERACTIVETOOLSFRAMEWORK_API virtual bool IsValid() const override;
24
25 // IPrimitiveComponentBackedTarget implementation
26 INTERACTIVETOOLSFRAMEWORK_API virtual UPrimitiveComponent* GetOwnerComponent() const override;
27 INTERACTIVETOOLSFRAMEWORK_API virtual USceneComponent* GetOwnerSceneComponent() const override;
28 INTERACTIVETOOLSFRAMEWORK_API virtual AActor* GetOwnerActor() const override;
29 INTERACTIVETOOLSFRAMEWORK_API virtual void SetOwnerVisibility(bool bVisible) const override;
30 INTERACTIVETOOLSFRAMEWORK_API virtual FTransform GetWorldTransform() const override;
31 INTERACTIVETOOLSFRAMEWORK_API virtual bool HitTestComponent(const FRay& WorldRay, FHitResult& OutHit) const override;
32
33 // UObject
34 INTERACTIVETOOLSFRAMEWORK_API void BeginDestroy() override;
35
36protected:
38
39 INTERACTIVETOOLSFRAMEWORK_API void InitializeComponent(UPrimitiveComponent* ComponentIn);
40
42
43private:
44#if WITH_EDITOR
45 INTERACTIVETOOLSFRAMEWORK_API void OnObjectsReplaced(const FCoreUObjectDelegates::FReplacementObjectMap& Map);
46#endif
47};
48
52UCLASS(Transient, MinimalAPI)
60
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition ToolTarget.h:54
Definition PrimitiveComponentBackedTarget.h:25
Definition Object.h:95
Definition PrimitiveComponentToolTarget.h:54
Definition PrimitiveComponentToolTarget.h:18
TWeakObjectPtr< UPrimitiveComponent > Component
Definition PrimitiveComponentToolTarget.h:41
Definition ToolTarget.h:92
virtual UToolTarget * BuildTarget(UObject *SourceObject, const FToolTargetTypeRequirements &TargetTypeInfo) PURE_VIRTUAL(UToolTargetFactory
Definition ToolTarget.h:97
virtual bool CanBuildTarget(UObject *SourceObject, const FToolTargetTypeRequirements &TargetTypeInfo) const PURE_VIRTUAL(UToolTargetFactory
Definition ToolTarget.h:96
Definition ToolTarget.h:40
Definition HitResult.h:21
Definition WeakObjectPtrTemplates.h:25