Navigation
API > API/Plugins > API/Plugins/ZoneGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UZoneShapeComponent
References
| Module | ZoneGraph |
| Header | /Engine/Plugins/Runtime/ZoneGraph/Source/ZoneGraph/Public/ZoneShapeComponent.h |
| Include | #include "ZoneShapeComponent.h" |
Syntax
UCLASS&40;ClassGroup&61;Custom, BlueprintType, ShowCategories&61;&40;Mobility&41;,
HideCategories&61;&40;Physics, Collision, Lighting, Rendering, Mobile&41;,
Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UZoneShapeComponent : public UPrimitiveComponent
Constructors
| Type | Name | Description | |
|---|---|---|---|
UZoneShapeComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddUniquePerPointLaneProfile
(
const FZoneLaneProfileRef& NewLaneProfileRef |
Adds new one if one does not exists | |
| void | Removes per point lane templates. | ||
| void | Removes unused items from the per point lane template array. | ||
| TConstArrayView< FZoneShapeConnection > | |||
| TArray< FZoneShapePoint > & | |||
| FZoneGraphTagMask & | |||
| int32 | GetNumPoints () |
||
| int32 | |||
| TConstArrayView< FZoneLaneProfileRef > | |||
| TConstArrayView< FZoneShapePoint > | GetPoints () |
||
| void | GetPolygonLaneProfiles
(
TArray< FZoneLaneProfile >& OutLaneProfiles |
||
| EZoneShapePolygonRoutingType | |||
| TConstArrayView< FZoneShapeConnector > | |||
| uint32 | GetShapeHash () |
||
| FZoneShapeType | GetShapeType () |
||
| void | GetSplineLaneProfile
(
FZoneLaneProfile& OutLaneProfile |
||
| FZoneGraphTagMask | GetTags () |
||
| bool | |||
| bool | Returns true if the shape is closed form. | ||
| FOnShapeDataChanged & | |||
| void | SetCommonLaneProfile
(
const FZoneLaneProfileRef& LaneProfileRef |
Sets lane profile which is used for spline lanes, and polygon points which are set to Inherit. | |
| void | SetPolygonRoutingType
(
const EZoneShapePolygonRoutingType NewType |
Sets the polygon routing type. | |
| bool | SetReverseLaneProfile
(
bool bReverse |
Set whether common lane profile should be reversed. | |
| void | SetShapeType
(
FZoneShapeType Type |
Sets shape type. | |
| void | SetTags
(
const FZoneGraphTagMask NewTags |
Sets shape tags. | |
| void | Updates how shape connectors are connected to other shapes. | ||
| void | Updates how shape connectors are connected to other shapes. | ||
| void | UpdatePointRotationAndTangent
(
int32 PointIndex |
Calculates rotation and tangent for a specific point. | |
| void | UpdateShape () |
Updates shape, calculates auto tangents, and adjusts lane points to match the lane templates, updates connectors and connections. | |
| void | Updates shape connectors from the points. |
Overridden from UPrimitiveComponent
| Type | Name | Description | |
|---|---|---|---|
| FPrimitiveSceneProxy * | Creates a proxy to represent the primitive to the scene manager in the rendering thread. |
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. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | |
| void | OnUnregister () |
Called when a component is unregistered. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | IsEditorOnly () |
Returns whether this component is an editor-only object or not | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | 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 | ||
| void | PostEditUndo () |
Called after applying a transaction to the object. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnShapeDataChanged |