Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Blueprint
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UAIBlueprintHelperLibrary
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Blueprint/AIBlueprintHelperLibrary.h |
| Include | #include "Blueprint/AIBlueprintHelperLibrary.h" |
Syntax
class UAIBlueprintHelperLibrary : public UBlueprintFunctionLibrary
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAIBlueprintHelperLibrary
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UAIAsyncTaskBlueprintProxy * | CreateMoveToProxyObject
(
UObject* WorldContextObject, |
||
| AAIController * | GetAIController
(
AActor* ControlledActor |
The way it works exactly is if the actor passed in is a pawn, then the function retrieves pawn's controller cast to AIController. | |
| UBlackboardComponent * | GetBlackboard
(
AActor* Target |
||
| UNavigationPath * | GetCurrentPath
(
AController* Controller |
Returns a NEW UOBJECT that is a COPY of navigation path given controller is currently using. | |
| int32 | GetCurrentPathIndex
(
const AController* Controller |
Return the path index the given controller is currently at. Returns INDEX_NONE if no path. | |
| const TArray< FVector > | GetCurrentPathPoints
(
AController* Controller |
Returns an array of navigation path points given controller is currently using. | |
| int32 | GetNextNavLinkIndex
(
const AController* Controller |
Return the path index of the next nav link for the current path of the given controller. | |
| bool | IsValidAIDirection
(
FVector DirectionVector |
||
| bool | IsValidAILocation
(
FVector Location |
||
| bool | IsValidAIRotation
(
FRotator Rotation |
||
| void | LockAIResourcesWithAnimation
(
UAnimInstance* AnimInstance, |
Locks indicated AI resources of animated pawn | |
| void | SendAIMessage
(
APawn* Target, |
||
| void | SimpleMoveToActor
(
AController* Controller, |
||
| void | SimpleMoveToLocation
(
AController* Controller, |
||
| APawn * | SpawnAIFromClass
(
UObject* WorldContextObject, |
Spawns AI agent of a given class. | |
| void | UnlockAIResourcesWithAnimation
(
UAnimInstance* AnimInstance, |
Unlocks indicated AI resources of animated pawn. Will unlock only animation-locked resources |