Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/FNavigationDirtyAreasController > API/Runtime/NavigationSystem/FNavigationDirtyAreasController/AddAreas
References
| Module | NavigationSystem |
| Header | /Engine/Source/Runtime/NavigationSystem/Public/NavigationDirtyAreasController.h |
| Include | #include "NavigationDirtyAreasController.h" |
| Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationDirtyAreasController.cpp |
void AddAreas
(
const TConstArrayView< FBox > NewAreas,
const ENavigationDirtyFlag Flags,
const TFunction< const TSharedPtr< const FNavigationElement >()> & ElementProviderFunc,
const FNavigationDirtyElement * DirtyElement,
const FName & DebugReason
)
Remarks
Add non-empty list of dirty areas 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. A check will be triggered if an empty array is provided.
Parameters
| Name | Description |
|---|---|
| NewAreas | Array of bounding boxes of the affected areas |
| 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 |