Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/FNavigationDirtyAreasController > API/Runtime/NavigationSystem/FNavigationDirtyAreasController/AddArea
References
| Module | NavigationSystem |
| Header | /Engine/Source/Runtime/NavigationSystem/Public/NavigationDirtyAreasController.h |
| Include | #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
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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 |