Navigation
API > API/Runtime > API/Runtime/NavigationSystem
Inheritance Hierarchy
- UActorComponent
- INavRelevantInterface
- UNavRelevantComponent
- UNavModifierComponent
- USplineNavModifierComponent
References
| Module | NavigationSystem |
| Header | /Engine/Source/Runtime/NavigationSystem/Public/NavModifierComponent.h |
| Include | #include "NavModifierComponent.h" |
Syntax
UCLASS (ClassGroup=(Navigation), Meta=(BlueprintSpawnableComponent), HideCategories=(Activation),
Config=Engine, defaultconfig, MinimalAPI)
class UNavModifierComponent : public UNavRelevantComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSubclassOf< UNavArea > | AreaClass | NavArea to apply inside the defined volume. | |
| TSubclassOf< UNavArea > | AreaClassToReplace | When setting this value, the modifier behavior changes : it will now replace any surface marked by AreaClassToReplace in the volume and replace it with AreaClass. | |
| uint8: 1 | bIncludeAgentHeight | Setting to 'true' will result in expanding lower bounding box of the nav modifier by agent's height, before applying to navmesh | |
| FTransform | CachedTransform | Cached in CalcAndCacheBounds and tested in GetNavigationData to see if cached data is still valid | |
| TArray< FRotatedBox > | ComponentBounds | ||
| FVector | FailsafeExtent | Box extent used ONLY when owning actor doesn't have collision component | |
| ENavigationDataResolution | NavMeshResolution | Experimental: Indicates which navmesh resolution should be used around the actor. | |
| FDelegateHandle | OnNavAreaRegisteredDelegateHandle | ||
| FDelegateHandle | OnNavAreaUnregisteredDelegateHandle | ||
| FDelegateHandle | TransformUpdateHandle |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UNavModifierComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Does the actual calculating and caching of the bounds when called by CalcAndCacheBounds. | ||
| void | GetNavigationData
(
FNavigationRelevantData& Data |
||
| void | OnNavAreaRegistered
(
const UWorld& World, |
||
| void | OnNavAreaUnregistered
(
const UWorld& World, |
||
| void | OnTransformUpdated
(
USceneComponent* RootComponent, |
||
| void | PopulateComponentBounds
(
FTransform InParentTransform, |
||
| void | SetAreaClass
(
TSubclassOf< UNavArea > NewAreaClass |
||
| void | SetAreaClassToReplace
(
TSubclassOf< UNavArea > NewAreaClassToReplace |
Overridden from UNavRelevantComponent
| Type | Name | Description | |
|---|---|---|---|
| void | @Note We might make this function non-virtual in the future in favor of child classes overriding CalculateBounds, see #jira UE-202451 | ||
| void | OnRegister () |
||
| void | OnUnregister () |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRotatedBox |