Navigation
API > API/Runtime > API/Runtime/NavigationSystem
| Name | UNavCollision |
| Type | class |
| Header File | /Engine/Source/Runtime/NavigationSystem/Public/NavCollision.h |
| Include Path | #include "NavCollision.h" |
Syntax
UCLASS (Config=Engine, MinimalAPI)
class UNavCollision : public UNavCollisionBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNavCollisionBase → UNavCollision
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNavCollision
(
const FObjectInitializer& ObjectInitializer |
NavCollision.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AreaClass | TSubclassOf< class UNavArea > | Navigation area type that will be use when this static mesh is used as a navigation obstacle. | NavCollision.h |
|
| bCreateOnClient | uint32 | If false, will not create nav collision when connecting as a client | NavCollision.h |
|
| bForceGeometryRebuild | uint32 | If set, convex geometry will be rebuild instead of using cooked data | NavCollision.h | |
| bGatherConvexGeometry | uint32 | If set, convex collisions will be exported offline for faster runtime navmesh building (increases memory usage) | NavCollision.h |
|
| BodySetupGuid | FGuid | Guid of associated BodySetup | NavCollision.h | |
| Bounds | FBox | NavCollision.h | ||
| BoxCollision | TArray< FNavCollisionBox > | List of nav collision boxes | NavCollision.h |
|
| ConvexShapeIndices | TNavStatArray< int32 > | NavCollision.h | ||
| CookedFormatData | FFormatContainer | Cooked data for each format | NavCollision.h | |
| CylinderCollision | TArray< FNavCollisionCylinder > | List of nav collision cylinders | NavCollision.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CopyUserSettings
(
const UNavCollision& OtherData |
Copy user settings from other nav collision data | NavCollision.h | |
void GatherCollision() |
Read collisions data | NavCollision.h | |
FGuid GetGuid() |
NavCollision.h |
Overridden from UNavCollisionBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawSimpleGeom
(
FPrimitiveDrawInterface* PDI, |
Show cylinder and box collisions | NavCollision.h | |
virtual bool ExportGeometry
(
const FTransform& LocalToWorld, |
Export collision data | NavCollision.h | |
virtual FBox GetBounds() |
NavCollision.h | ||
virtual void GetNavigationModifier
(
FCompositeNavModifier& Modifier, |
Get data for dynamic obstacle | NavCollision.h | |
virtual void InvalidateCollision() |
NavCollision.h | ||
virtual void Setup
(
UBodySetup* BodySetup |
Tries to read data from DDC, and if that fails gathers navigation collision data, stores it and uploads to DDC | NavCollision.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
NavCollision.h | ||
virtual bool NeedsLoadForClient() |
NavCollision.h | ||
virtual bool NeedsLoadForTargetPlatform
(
const ITargetPlatform* TargetPlatform |
NavCollision.h | ||
virtual void PostInitProperties() |
NavCollision.h | ||
virtual void PostLoad() |
NavCollision.h | ||
virtual void Serialize
(
FArchive& Ar |
NavCollision.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearCollision() |
NavCollision.h | ||
FByteBulkData * GetCookedData
(
FName Format |
NavCollision.h | ||
void InvalidatePhysicsData() |
NavCollision.h |