UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PrimitiveComponentBackedTarget.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#include "UObject/Interface.h"
8
9#include "PrimitiveComponentBackedTarget.generated.h"
10
11class UPrimitiveComponent;
12class UActorComponent;
13class AActor;
14
15struct FHitResult;
16
17
18UINTERFACE(MinimalAPI)
23
25{
27
28public:
29
31 virtual UPrimitiveComponent* GetOwnerComponent() const = 0;
32
39 virtual bool HitTestComponent(const FRay& WorldRay, FHitResult& OutHit) const = 0;
40};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UINTERFACE(...)
Definition ObjectMacros.h:780
Definition Actor.h:257
Definition PrimitiveComponentBackedTarget.h:25
virtual UPrimitiveComponent * GetOwnerComponent() const =0
virtual bool HitTestComponent(const FRay &WorldRay, FHitResult &OutHit) const =0
Definition SceneComponentBackedTarget.h:22
Definition ActorComponent.h:152
Definition PrimitiveComponentBackedTarget.h:20
Definition SceneComponentBackedTarget.h:17
Definition HitResult.h:21