Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UShapeComponent
- UBoxComponent
- UCapsuleComponent
- USphereComponent
- UDrawSphereComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/ShapeComponent.h |
| Include | #include "Components/ShapeComponent.h" |
Syntax
UCLASS (Abstract,
HideCategories=(Object, LOD, Lighting, TextureStreaming, Activation, "Components|Activation"),
EditInlineNew, Meta=(BlueprintSpawnableComponent), ShowCategories=(Mobility), MinimalAPI)
class UShapeComponent : public UPrimitiveComponent
Remarks
ShapeComponent is a PrimitiveComponent that is represented by a simple geometrical shape (sphere, capsule, box, etc).
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSubclassOf< class UNavAreaBase > | AreaClass | Navigation area type (empty / none has no effect on underlying area type). | |
| TSubclassOf< class UNavAreaBase > | AreaClassOverride | Navigation area type override, null / none = no change to nav mesh. | |
| uint8: 1 | bDrawOnlyIfSelected | Only show this component if the actor is selected | |
| uint8: 1 | bDynamicObstacle | If set, shape will be exported for navigation as dynamic modifier instead of using regular collision data | |
| uint8: 1 | bShouldCollideWhenPlacing | If true it allows Collision when placing even if collision is not enabled | |
| uint8: 1 | bUseArchetypeBodySetup | If the body setup can be shared (i.e. there have been no alterations compared to the CDO) | |
| uint8: 1 | bUseSystemDefaultObstacleAreaClass | Uses FNavigationSystem::GetDefaultObstacleArea() by default instead of AreaClassOverride, bDynamicObstacle must be true to use this. | |
| float | LineThickness | Used to control the line thickness when rendering | |
| TObjectPtr< class UBodySetup > | ShapeBodySetup | Description of collision | |
| FColor | ShapeColor | Color used to draw the shape. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UShapeComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
||
| TSubclassOf< class UNavAreaBase > | |||
| bool | Checks if a shared body setup is available (and if we're eligible for it). | ||
| void | SetAreaClassOverride
(
TSubclassOf< class UNavAreaBase > InAreaClassOverride |
||
| void | SetLineThickness
(
float Thickness |
Set the LineThickness. | |
| ENGINE_API void | SetShapeToNewGeom
(
const FPhysicsShapeHandle& Shape |
||
| void | SetShapeToNewGeom
(
const FPhysicsShapeHandle& Shape |
||
| ENGINE_API void | SetShapeToNewGeom
(
const FPhysicsShapeHandle& Shape |
||
| ENGINE_API void | SetShapeToNewGeom
(
const FPhysicsShapeHandle& Shape |
||
| void | |||
| void | Update the body setup parameters based on shape information |
Overridden from UPrimitiveComponent
| Type | Name | Description | |
|---|---|---|---|
| FPrimitiveSceneProxy * | Creates a proxy to represent the primitive to the scene manager in the rendering thread. | ||
| UBodySetup * | GetBodySetup () |
Return the BodySetup to use for this PrimitiveComponent (single body case) | |
| bool | Whether or not the bounds of this component should be considered when focusing the editor camera to an actor with this component in it. |
Overridden from USceneComponent
| Type | Name | Description | |
|---|---|---|---|
| FBoxSphereBounds | CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. | |
| bool | If true, bounds should be used when placing component/actor in level. Does not affect spawning. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| bool | Override to specify that a component is relevant to the navigation system |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from INavRelevantInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | DoCustomNavigableGeometryExport
(
FNavigableGeometryExport& GeomExport |
Collects custom navigable geometry of component. | |
| void | GetNavigationData
(
FNavigationRelevantData& Data |
Prepares navigation modifiers |