UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AISense_Blueprint.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"
10#include "AISense_Blueprint.generated.h"
11
12class APawn;
14class UAISenseEvent;
16
17UCLASS(ClassGroup = AI, Abstract, Blueprintable, hidedropdown, MinimalAPI)
19{
21
22protected:
23 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Sense")
25
26 UPROPERTY(BlueprintReadOnly, Category = "Sense")
28
29 UPROPERTY()
30 TArray<TObjectPtr<UAISenseEvent>> UnprocessedEvents;
31
32public:
34
35 //void RegisterEvent(const FAITeamStimulusEvent& Event);
36
39 UFUNCTION(BlueprintImplementableEvent)
41
45 UFUNCTION(BlueprintImplementableEvent)
46 AIMODULE_API void OnListenerRegistered(AActor* ActorListener, UAIPerceptionComponent* PerceptionComponent);
47
51 UFUNCTION(BlueprintImplementableEvent)
52 AIMODULE_API void OnListenerUpdated(AActor* ActorListener, UAIPerceptionComponent* PerceptionComponent);
53
57 UFUNCTION(BlueprintImplementableEvent)
58 AIMODULE_API void OnListenerUnregistered(AActor* ActorListener, UAIPerceptionComponent* PerceptionComponent);
59
60 UFUNCTION(BlueprintCallable, Category = "AI|Perception")
61 AIMODULE_API void GetAllListenerActors(TArray<AActor*>& ListenerActors) const;
62
63 UFUNCTION(BlueprintCallable, Category = "AI|Perception")
64 AIMODULE_API void GetAllListenerComponents(TArray<UAIPerceptionComponent*>& ListenerComponents) const;
65
67 UFUNCTION(BlueprintImplementableEvent, DisplayName="OnNewPawn", meta=(ScriptName="OnNewPawn"))
68 AIMODULE_API void K2_OnNewPawn(APawn* NewPawn);
69
71 AIMODULE_API virtual void RegisterWrappedEvent(UAISenseEvent& PerceptionEvent) override;
72
74 AIMODULE_API virtual void OnNewPawn(APawn& NewPawn) override;
76
77 AIMODULE_API void OnNewListenerImpl(const FPerceptionListener& NewListener);
78 AIMODULE_API void OnListenerUpdateImpl(const FPerceptionListener& UpdatedListener);
79 AIMODULE_API void OnListenerRemovedImpl(const FPerceptionListener& UpdatedListener);
80
82 static TMap<FNameEntryId, FAISenseID> BPSenseToSenseID;
83};
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 UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition UObjectGlobals.h:1292
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition SubclassOf.h:30
Definition AISenseEvent.h:14
Definition AISense_Blueprint.h:19
Definition AISense.h:21
Definition UserDefinedStruct.h:61
Definition NameTypes.h:69
Definition AIPerceptionTypes.h:247
Definition ObjectPtr.h:488