UShapeComponent

Inheritance Hierarchy

Syntax

class UShapeComponent : public UPrimitiveComponent

Remarks

ShapeComponent is a PrimitiveComponent that is represented by a simple geometrical shape (sphere, capsule, box, etc).

Variables

Name Description

Public variable

TSubclassOf < cl...

 

AreaClass

Navigation area type (empty = default obstacle)

Protected variable

uint8: 1

 

bUseArchetypeBodySetup

If the body setup can be shared (i.e. there have been no alterations compared to the CDO)

Functions

Name Description

Protected function

void

 

AddShapeToGeomArray()

Protected function

void

 

AddShapeToGeomArray()

Protected function

void

 

AddShapeToGeomArray()

Protected function

void

 

AddShapeToGeomArray()

Protected function

void

 

CreateShapeBodySetupIfNeeded()

Protected function

bool

 

PrepareSharedBodySetup()

Checks if a shared body setup is available (and if we're eligible for it).

Protected function

void

 

SetShapeToNewGeom

(
    PxShape* PShape
)

Protected function

void

 

SetShapeToNewGeom

(
    physx::PxShape* PShape
)

Protected function

void

 

SetShapeToNewGeom

(
    PxShape* PShape
)

Protected function

void

 

SetShapeToNewGeom

(
    PxShape* PShape
)

Public function Virtual

void

 

UpdateBodySetup()

WITH_EDITOR.

Overridden from UPrimitiveComponent

Name Description

Public function Virtual

FPrimitiveSc ...

 

CreateSceneProxy()

Creates a proxy to represent the primitive to the scene manager in the rendering thread.

Public function Virtual

bool

 

DoCustomNavigableGeometryExport

(
    FNavigableGeometryExport & GeomExpo...
)

Collects custom navigable geometry of component.

Public function Virtual

UBodySetup &...

 

GetBodySetup()

Return the BodySetup to use for this PrimitiveComponent (single body case)

Overridden from USceneComponent

Name Description

Public function Virtual

FBoxSphereBo ...

 

CalcBounds

(
    const FTransform & LocalToWorld
)

Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size.

Public function Virtual

bool

 

ShouldCollideWhenPlacing()

If true, bounds should be used when placing component/actor in level. Does not affect spawning.

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Overridden from INavRelevantInterface

Name Description

Public function Virtual

void

 

GetNavigationData

(
    FNavigationRelevantData & Data
)

Prepare navigation modifiers

Public function Virtual

bool

 

IsNavigationRelevant()

Are modifiers active?

References

Module

Engine

Header

Runtime/Engine/Classes/Components/ShapeComponent.h