Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/FNavigationDirtyAreasController
Description
Add a dirty area to the queue based on the provided bounds and flags. Bounds must be valid and non-empty otherwise the request will be ignored and a warning reported. Accumulation must be allowed and flags valid otherwise the add is ignored.
| Name | AddArea |
| Type | function |
| Header File | /Engine/Source/Runtime/NavigationSystem/Public/NavigationDirtyAreasController.h |
| Include Path | #include "NavigationDirtyAreasController.h" |
| Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationDirtyAreasController.cpp |
void AddArea
(
const FBox & NewArea,
const ENavigationDirtyFlag Flags,
const TFunction < const TSharedPtr < const FNavigationElement >> & ElementProviderFunc,
const FNavigationDirtyElement * DirtyElement,
const FName & DebugReason
)
Parameters
| Name | Remarks |
|---|---|
| NewArea | Bounding box of the affected area |
| Flags | Indicates the type of modification applied to the area |
| ElementProviderFunc | Optional function to retrieve source element that can be used for error reporting and navmesh exclusion |
| DirtyElement | Optional dirty element |
| DebugReason | Source of the new area |