Navigation
API > API/Plugins > API/Plugins/PCG
Subset of the Spline Component API in a standalone struct
| Name | FPCGSplineStruct |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGSplineStruct.h |
| Include Path | #include "Data/PCGSplineStruct.h" |
Syntax
USTRUCT ()
struct FPCGSplineStruct
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGSplineStruct
(
FPCGSplineStruct&& Other |
Data/PCGSplineStruct.h | ||
FPCGSplineStruct
(
const FPCGSplineStruct& Other |
Data/PCGSplineStruct.h | ||
| Data/PCGSplineStruct.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bClosedLoop | bool | Data/PCGSplineStruct.h | ||
| Bounds | FBoxSphereBounds | Data/PCGSplineStruct.h | ||
| DefaultUpVector | FVector | Data/PCGSplineStruct.h | ||
| LocalBounds | FBoxSphereBounds | Data/PCGSplineStruct.h | ||
| ReparamStepsPerSegment | int32 | Data/PCGSplineStruct.h | ||
| Transform | FTransform | Replaces the component transform. | Data/PCGSplineStruct.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedSortedAttributeChannelNames | TArray< FName > | Data/PCGSplineStruct.h | ||
| SpinLock | UE::FSpinLock | Data/PCGSplineStruct.h | ||
| Spline | FSpline | Data/PCGSplineStruct.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddPoint
(
const FSplinePoint& InSplinePoint, |
Spline-related methods. | Data/PCGSplineStruct.h | |
void AddPoints
(
const TArray< FSplinePoint >& InSplinePoints, |
Data/PCGSplineStruct.h | ||
void AllocateMetadataEntries () |
To be called at any moment we want to access individual metadata, like with accessors. | Data/PCGSplineStruct.h | |
void ApplyTo
(
USplineComponent* InSplineComponent |
Data/PCGSplineStruct.h | ||
bool ConvertSplineSegmentToPolyLine
(
int32 SplinePointStartIndex, |
Given a threshold, returns a list of vertices along the spline segment that, treated as a list of segments (polyline), matches the spline shape. | Data/PCGSplineStruct.h | |
bool ConvertSplineToPolyLine
(
ESplineCoordinateSpace::Type CoordinateSpace, |
Given a threshold, returns a list of vertices along the spline that, treated as a list of segments (polyline), matches the spline shape. | Data/PCGSplineStruct.h | |
float FindInputKeyClosestToWorldLocation
(
const FVector& WorldLocation |
Data/PCGSplineStruct.h | ||
float FindInputKeyOnSegmentClosestToWorldLocation
(
const FVector& WorldLocation, |
Data/PCGSplineStruct.h | ||
FVector GetArriveTangent
(
const int32 Index |
Data/PCGSplineStruct.h | ||
| Gets a lexicographically sorted list of channel names. | Data/PCGSplineStruct.h | ||
float GetAttributeValue
(
float InputKey, |
Evaluate the specified attribute channel at the specified spline input key. | Data/PCGSplineStruct.h | |
FBox GetBounds() |
Data/PCGSplineStruct.h | ||
TConstArrayView< PCGMetadataEntryKey > GetConstControlPointsEntryKeys() |
Data/PCGSplineStruct.h | ||
FVector::FReal GetDistanceAlongSplineAtSplinePoint
(
int32 PointIndex |
Data/PCGSplineStruct.h | ||
float GetInputKeyAtDistanceAlongSpline
(
FVector::FReal Distance |
Data/PCGSplineStruct.h | ||
float GetInputKeyAtSegmentStart
(
int InSegmentIndex |
Return the input key at segment start for the given segment. | Data/PCGSplineStruct.h | |
FVector GetLeaveTangent
(
const int32 Index |
Data/PCGSplineStruct.h | ||
FVector GetLocation
(
const int32 Index |
Data/PCGSplineStruct.h | ||
FVector GetLocationAtDistanceAlongSpline
(
FVector::FReal Distance, |
Data/PCGSplineStruct.h | ||
FVector GetLocationAtSplineInputKey
(
float InKey, |
Data/PCGSplineStruct.h | ||
TArrayView< PCGMetadataEntryKey > GetMutableControlPointsEntryKeys() |
Data/PCGSplineStruct.h | ||
int GetNumberOfPoints() |
Data/PCGSplineStruct.h | ||
int GetNumberOfSplineSegments() |
Data/PCGSplineStruct.h | ||
FQuat GetQuaternionAtSplineInputKey
(
float InKey, |
Data/PCGSplineStruct.h | ||
FVector GetRightVectorAtSplineInputKey
(
float InKey, |
Data/PCGSplineStruct.h | ||
FQuat GetRotation
(
const int32 Index |
Data/PCGSplineStruct.h | ||
FVector GetScale
(
const int32 Index |
Data/PCGSplineStruct.h | ||
FVector GetScaleAtSplineInputKey
(
float InKey |
Data/PCGSplineStruct.h | ||
FBox GetSegmentBounds
(
int32 Index |
Data/PCGSplineStruct.h | ||
TTuple< int, float > GetSegmentStartIndexAndKeyAtInputKey
(
float InKey |
Return the index of the segment for a given InputKey, and the input key at the segment start. | Data/PCGSplineStruct.h | |
FVector::FReal GetSplineLength() |
Data/PCGSplineStruct.h | ||
const FInterpCurveVector & GetSplinePointsPosition() |
Data/PCGSplineStruct.h | ||
const FInterpCurveQuat & GetSplinePointsRotation() |
Data/PCGSplineStruct.h | ||
const FInterpCurveVector & GetSplinePointsScale() |
Data/PCGSplineStruct.h | ||
EInterpCurveMode GetSplinePointType
(
int32 Index |
Data/PCGSplineStruct.h | ||
FVector GetTangentAtSplineInputKey
(
float InKey, |
Data/PCGSplineStruct.h | ||
FTransform GetTransform() |
Data/PCGSplineStruct.h | ||
FTransform GetTransformAtDistanceAlongSpline
(
FVector::FReal Distance, |
Data/PCGSplineStruct.h | ||
FTransform GetTransformAtSplineInputKey
(
float InKey, |
Data/PCGSplineStruct.h | ||
void Initialize
(
const TArray< FSplinePoint >& InSplinePoints, |
Data/PCGSplineStruct.h | ||
void Initialize
(
const USplineComponent* InSplineComponent |
Data/PCGSplineStruct.h | ||
bool IsClosedLoop() |
Data/PCGSplineStruct.h | ||
void PostSerialize
(
const FArchive& Ar |
Data/PCGSplineStruct.h | ||
void SetArriveTangent
(
const int32 Index, |
Data/PCGSplineStruct.h | ||
void SetLeaveTangent
(
const int32 Index, |
Data/PCGSplineStruct.h | ||
void SetLocation
(
int32 Index, |
Data/PCGSplineStruct.h | ||
void SetRotation
(
int32 Index, |
Data/PCGSplineStruct.h | ||
void SetScale
(
int32 Index, |
Data/PCGSplineStruct.h | ||
void SetSplinePointType
(
int32 Index, |
Data/PCGSplineStruct.h | ||
void UpdateSpline() |
Data/PCGSplineStruct.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGSplineStruct & operator=
(
FPCGSplineStruct&& Other |
Data/PCGSplineStruct.h | ||
FPCGSplineStruct & operator=
(
const FPCGSplineStruct& Other |
Data/PCGSplineStruct.h |