Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AI
Inheritance Hierarchy
- FNavigationModifier
- FAreaNavModifier
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/AI/NavigationModifier.h |
| Include | #include "AI/NavigationModifier.h" |
Syntax
struct FAreaNavModifier : public FNavigationModifier
Remarks
Area modifier: base
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< ENavigationAreaMode::Type > | ApplyMode | ||
| TWeakObjectPtr< UClass > | AreaClassOb | This should take a value of a game specific navigation modifier | |
| uint8: 1 | bExpandTopByCellHeight | If set, area shape will be extended at the top by one cell height | |
| uint8: 1 | bIncludeAgentHeight | If set, area shape will be extended by agent's height to cover area underneath like regular colliding geometry | |
| uint8: 1 | bIsLowAreaModifier | Set when this modifier affects low spans in navmesh generation step | |
| FBox | Bounds | ||
| float | Cost | Transient value used for navigation modifiers sorting. If < 0 then not set | |
| float | FixedCost | ||
| TArray< FVector > | Points | ||
| TWeakObjectPtr< UClass > | ReplaceAreaClassOb | ||
| TEnumAsByte< ENavigationShapeType::Type > | ShapeType |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAreaNavModifier
(
const UBrushComponent* BrushComponent, |
FAreaNavModifier constructor with a UBrushComponent* parameter has been deprecated since it wasn't able to handle concave shapes. Use FCompositeNavModifier::CreateAreaModifiers instead | ||
FAreaNavModifier
(
const FVector& Extent, |
|||
FAreaNavModifier
(
const FBox& Box, |
|||
FAreaNavModifier
(
float Radius, |
|||
FAreaNavModifier
(
const TArray< FVector >& Points, |
|||
FAreaNavModifier
(
const TArray< FVector >& Points, |
|||
FAreaNavModifier
(
const TNavStatArray< FVector >& Points, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | FillConvexNavAreaData
(
const FVector* InPoints, |
||
| ENavigationAreaMode::Type | GetApplyMode () |
||
| const TSubclassOf< UNavAreaBase > | GetAreaClass () |
||
| const TSubclassOf< UNavAreaBase > | |||
| const FBox & | GetBounds () |
||
| void | GetBox
(
FBoxNavAreaData& Data |
||
| void | GetConvex
(
FConvexNavAreaData& Data |
||
| void | GetCylinder
(
FCylinderNavAreaData& Data |
||
| void | GetPerInstanceConvex
(
const FTransform& InLocalToWorld, |
||
| ENavigationShapeType::Type | GetShapeType () |
||
| void | Init
(
const TSubclassOf< UNavAreaBase > InAreaClass |
||
| void | InitializeConvex
(
const TNavStatArray< FVector >& Points, |
||
| void | InitializePerInstanceConvex
(
const TNavStatArray< FVector >& Points, |
||
| bool | |||
| void | SetApplyMode
(
ENavigationAreaMode::Type InApplyMode |
Operation mode, ReplaceInLowPass will always automatically use UNavArea_LowHeight as ReplaceAreaClass! | |
| void | SetAreaClass
(
const TSubclassOf< UNavAreaBase > AreaClass |
Navigation area applied by this modifier | |
| void | SetAreaClassToReplace
(
const TSubclassOf< UNavAreaBase > AreaClass |
Additional class for used by some ApplyModes, setting it will automatically change ApplyMode to keep backwards compatibility! | |
| void | SetBox
(
const FBox& Box, |
||
| void | SetConvex
(
const FVector* InPoints, |
||
| void | SetExpandTopByCellHeight
(
bool bExpand |
||
| FAreaNavModifier & | SetIncludeAgentHeight
(
bool bInclude |
||
| void | SetPerInstanceConvex
(
const FVector* InPoints, |
||
| bool | |||
| bool |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
FAreaNavModifier
(
const UBrushComponent* BrushComponent, |
FAreaNavModifier constructor with a UBrushComponent* parameter has been deprecated since it wasn't able to handle concave shapes. Use FCompositeNavModifier::CreateAreaModifiers instead |