UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AISightTargetInterface.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 "AISense_Sight.h"
8#include "UObject/Interface.h"
9#include "AISightTargetInterface.generated.h"
10
11class AActor;
12
13UINTERFACE(MinimalAPI)
18
30
32{
34
35
48 {
51 const bool bCanBeSeenFrom = CanBeSeenFrom(Context.ObserverLocation, OutSeenLocation, OutNumberOfLoSChecksPerformed, OutSightStrength, Context.IgnoreActor, Context.bWasVisible, UserData);
54 }
55
66 UE_DEPRECATED(5.2, "This function is deprecated. Use the new CanBeSeenFrom method signature")
67 virtual bool CanBeSeenFrom(const FVector& ObserverLocation, FVector& OutSeenLocation, int32& NumberOfLoSChecksPerformed, float& OutSightStrength, const AActor* IgnoreActor = nullptr, const bool* bWasVisible = nullptr, int32* UserData = nullptr) const
68 {
71 return false;
72 }
73};
74
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
#define UINTERFACE(...)
Definition ObjectMacros.h:780
#define GENERATED_IINTERFACE_BODY(...)
Definition ObjectMacros.h:770
#define GENERATED_UINTERFACE_BODY(...)
Definition ObjectMacros.h:769
Definition Actor.h:257
Definition AISightTargetInterface.h:32
EVisibilityResult
Definition AISense_Sight.h:224
Definition AISightTargetInterface.h:15
Definition Interface.h:19
Definition AISense_Sight.h:186
Definition AISightTargetInterface.h:20
FVector ObserverLocation
Definition AISightTargetInterface.h:24
const bool * bWasVisible
Definition AISightTargetInterface.h:28
const AActor * IgnoreActor
Definition AISightTargetInterface.h:26
FAISightQueryID SightQueryID
Definition AISightTargetInterface.h:22