UZoneShapeComponent

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ZoneGraph

Header

/Engine/Plugins/Runtime/ZoneGraph/Source/ZoneGraph/Public/ZoneShapeComponent.h

Include

#include "ZoneShapeComponent.h"

Syntax

UCLASS(ClassGroup=Custom, BlueprintType, ShowCategories=(Mobility),
       HideCategories=(Physics, Collision, Lighting, Rendering, Mobile),
       Meta=(BlueprintSpawnableComponent))
class UZoneShapeComponent : public UPrimitiveComponent

Constructors

Name Description

Public function

UZoneShapeComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

int32

 

AddUniquePerPointLaneProfile

(
    const FZoneLaneProfileRef& NewLane...
)

Adds new one if one does not exists

Public function

void

 

ClearPerPointLaneProfiles()

Removes per point lane templates.

Public function

void

 

CompactPerPointLaneProfiles()

Removes unused items from the per point lane template array.

Public function Const

TConstArrayV...

 

GetConnectedShapes()

Public function

TArray< FZon...

 

GetMutablePoints()

Public function

FZoneGraphTa...

 

GetMutableTags()

Public function Const

int32

 

GetNumPoints()

Public function Const

int32

 

GetNumSegments()

Public function Const

TConstArrayV...

 

GetPerPointLaneProfiles()

Public function Const

TConstArrayV...

 

GetPoints()

Public function Const

void

 

GetPolygonLaneProfiles

(
    TArray< FZoneLaneProfile >& OutLan...
)

Public function Const

EZoneShapePo...

 

GetPolygonRoutingType()

Public function Const

TConstArrayV...

 

GetShapeConnectors()

Public function Const

uint32

 

GetShapeHash()

Public function Const UFunction BlueprintPure, Category

FZoneShapeTy...

 

GetShapeType()

Public function Const

void

 

GetSplineLaneProfile

(
    FZoneLaneProfile& OutLaneProfile
)

Public function Const UFunction BlueprintPure, Category

FZoneGraphTa...

 

GetTags()

Public function Const UFunction BlueprintPure, Category

bool

 

IsLaneProfileReversed()

Public function Const

bool

 

IsShapeClosed()

Returns true if the shape is closed form.

Public function

FOnShapeData...

 

OnShapeDataChanged()

Public function

void

 

SetCommonLaneProfile

(
    const FZoneLaneProfileRef& LanePro...
)

Sets lane profile which is used for spline lanes, and polygon points which are set to Inherit.

Public function UFunction BlueprintCallable, Category

void

 

SetPolygonRoutingType

(
    const EZoneShapePolygonRoutingType ...
)

Sets the polygon routing type.

Public function UFunction BlueprintCallable, Category

bool

 

SetReverseLaneProfile

(
    bool bReverse
)

Set whether common lane profile should be reversed.

Public function UFunction BlueprintCallable, Category

void

 

SetShapeType

(
    FZoneShapeType Type
)

Sets shape type.

Public function UFunction BlueprintCallable, Category

void

 

SetTags

(
    const FZoneGraphTagMask NewTags
)

Sets shape tags.

Public function

void

 

UpdateConnectedShapes()

Updates how shape connectors are connected to other shapes.

Public function

void

 

UpdateMatingConnectedShapes()

Updates how shape connectors are connected to other shapes.

Public function

void

 

UpdatePointRotationAndTangent

(
    int32 PointIndex
)

Calculates rotation and tangent for a specific point.

Public function

void

 

UpdateShape()

Updates shape, calculates auto tangents, and adjusts lane points to match the lane templates, updates connectors and connections.

Public function

void

 

UpdateShapeConnectors()

Updates shape connectors from the points.

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.

Overridden from USceneComponent

Name Description

Public function Virtual Const

FBoxSphereBo...

 

CalcBounds

(
    const FTransform& LocalToWorld
)

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

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

OnRegister()

Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.

Public function Virtual

void

 

OnUnregister()

Called when a component is unregistered.

Overridden from UObject

Name Description

Public function Virtual Const

bool

 

IsEditorOnly()

Returns whether this component is an editor-only object or not

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostEditImport()

Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization

Public function Virtual

void

 

PostEditUndo()

Called after applying a transaction to the object.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Classes

Name

Description

Public class

FOnShapeDataChanged