Navigation
API > API/Runtime > API/Runtime/Engine
A spline component is a spline shape which can be used for other purposes (e.g. animating objects). It contains debug rendering capabilities.
| Name | USplineComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SplineComponent.h |
| Include Path | #include "Components/SplineComponent.h" |
Syntax
UCLASS (ClassGroup=Utility, ShowCategories=(Mobility),
HideCategories=(Physics, Collision, Lighting, Rendering, Mobile),
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class USplineComponent : public UPrimitiveComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → USplineComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USplineComponent
(
const FObjectInitializer& ObjectInitializer |
Components/SplineComponent.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DeselectedInEditorDelegate | TMulticastDelegate_OneParam< void, TObjectPtr< USplineComponent > > | Delegate that's called when this component is deselected in the editor | Components/SplineComponent.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DummyPointPosition | const FInterpCurvePointVector | The dummy value used for queries when there are no point in a spline | Components/SplineComponent.h |
| DummyPointRotation | const FInterpCurvePointQuat | Components/SplineComponent.h | |
| DummyPointScale | const FInterpCurvePointVector | Components/SplineComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAdjustTangentsOnSnap | bool | Adjust tangents after snapping. | Components/SplineComponent.h |
|
| bAllowDiscontinuousSpline | bool | Whether the spline's leave and arrive tangents can be different | Components/SplineComponent.h |
|
| bDrawDebug | bool | If true, the spline will be rendered if the Splines showflag is set. | Components/SplineComponent.h |
|
| bInputSplinePointsToConstructionScript | bool | Whether the spline points should be passed to the User Construction Script so they can be further manipulated by it. | Components/SplineComponent.h |
|
| bModifiedByConstructionScript | bool | Whether the UCS has made changes to the spline points | Components/SplineComponent.h | |
| bShouldVisualizeScale | bool | Whether scale visualization should be displayed | Components/SplineComponent.h |
|
| bSplineHasBeenEdited | bool | Whether the spline has been edited from its default by the spline component visualizer | Components/SplineComponent.h |
|
| bStationaryEndpoints | bool | Whether the endpoints of the spline are considered stationary when traversing the spline at non-constant velocity. | Components/SplineComponent.h |
|
| DefaultUpVector | FVector | Default up vector in local space to be used when calculating transforms along the spline | Components/SplineComponent.h |
|
| Duration | float | Specifies the duration of the spline in seconds | Components/SplineComponent.h |
|
| EditorSelectedSplineSegmentColor | FLinearColor | Color of selected spline component parts in the editor | Components/SplineComponent.h |
|
| EditorTangentColor | FLinearColor | Color of spline point tangents in the editor | Components/SplineComponent.h |
|
| EditorUnselectedSplineSegmentColor | FLinearColor | Color of unselected spline component parts in the editor | Components/SplineComponent.h |
|
| OnDeselectedInEditor | DeselectedInEditorDelegate | Components/SplineComponent.h | ||
| ReparamStepsPerSegment | int32 | Number of steps per spline segment to place in the reparameterization table | Components/SplineComponent.h |
|
| ScaleVisualizationWidth | float | Width of spline in editor for use with scale visualization | Components/SplineComponent.h |
|
| SplineCurves | FSplineCurves | Components/SplineComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bClosedLoop | bool | Whether the spline is to be considered as a closed loop. | Components/SplineComponent.h |
|
| bLoopPositionOverride | bool | Components/SplineComponent.h |
|
|
| LastAuthority | ELastAuthority | Components/SplineComponent.h | ||
| LineMaterial | TSoftObjectPtr< UMaterialInterface > | Material used for rendering spline segments. | Components/SplineComponent.h |
|
| LineMaterialLifetimePtr | TObjectPtr< UMaterialInterface > | Holds a strong reference to LineMaterial once loaded. | Components/SplineComponent.h |
|
| LineMaterialLoadID | int32 | Components/SplineComponent.h | ||
| LoopPosition | float | Components/SplineComponent.h |
|
|
| PointMaterial | TSoftObjectPtr< UMaterialInterface > | Material used for rendering spline points. | Components/SplineComponent.h |
|
| PointMaterialLifetimePtr | TObjectPtr< UMaterialInterface > | Holds a strong reference to PointMaterial once loaded. | Components/SplineComponent.h |
|
| PointMaterialLoadID | int32 | Components/SplineComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddPoint
(
const FSplinePoint& Point, |
Adds an FSplinePoint to the spline. | Components/SplineComponent.h |
|
void AddPoints
(
const TArray< FSplinePoint >& Points, |
Adds an array of FSplinePoints to the spline. | Components/SplineComponent.h |
|
void AddSplineLocalPoint
(
const FVector& Position |
Adds a local space point to the spline | Components/SplineComponent.h |
|
void AddSplinePoint
(
const FVector& Position, |
Adds a point to the spline | Components/SplineComponent.h |
|
void AddSplinePointAtIndex
(
const FVector& Position, |
Adds a point to the spline at the specified index | Components/SplineComponent.h |
|
void AddSplineWorldPoint
(
const FVector& Position |
Deprecated method definitions. | Components/SplineComponent.h |
|
virtual bool AllowsSpinePointLocationEditing() |
Controls the visibility of the Spline point location editor in the details panel. | Components/SplineComponent.h | |
virtual bool AllowsSplinePointArriveTangentEditing() |
Controls the visibility of the Spline point arrive tangent editor in the details panel. | Components/SplineComponent.h | |
virtual bool AllowsSplinePointLeaveTangentEditing() |
Controls the visibility of the Spline point leave tangent editor in the details panel. | Components/SplineComponent.h | |
virtual bool AllowsSplinePointRotationEditing() |
Controls the visibility of the Spline point rotation editor in the details panel. | Components/SplineComponent.h | |
virtual bool AllowsSplinePointScaleEditing() |
Controls the visibility of the Spline point scale editor in the details panel. | Components/SplineComponent.h | |
void ApplyComponentInstanceData
(
FSplineComponentInstanceData* ComponentInstanceData, |
Components/SplineComponent.h | ||
void ApplyComponentInstanceData
(
FSplineInstanceData* ComponentInstanceData, |
Components/SplineComponent.h | ||
bool CanResetToDefault() |
Components/SplineComponent.h | ||
void ClearSplinePoints
(
bool bUpdateSpline |
Clears all the points in the spline | Components/SplineComponent.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. | Components/SplineComponent.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. | Components/SplineComponent.h |
|
bool ConvertSplineToPolyline_InDistanceRange
(
ESplineCoordinateSpace::Type CoordinateSpace, |
Given a threshold and a start and end distance range, returns a list of vertices along the spline that, treated as a list of segments (polyline), matches the spline shape in that range. | Components/SplineComponent.h |
|
bool ConvertSplineToPolyline_InTimeRange
(
ESplineCoordinateSpace::Type CoordinateSpace, |
Given a threshold and start and end time range, returns a list of vertices along the spline that, treated as a list of segments (polyline), matches the spline shape in that range. | Components/SplineComponent.h |
|
bool ConvertSplineToPolyLineWithDistances
(
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. | Components/SplineComponent.h |
|
void CreateFloatPropertyChannel
(
FName PropertyName |
Create a float attribute channel. | Components/SplineComponent.h |
|
bool DivideSplineIntoPolylineRecursive
(
float StartDistanceAlongSpline, |
Given a threshold, recursively sub-divides the spline section until the list of segments (polyline) matches the spline shape. | Components/SplineComponent.h |
|
bool DivideSplineIntoPolylineRecursiveWithDistances
(
float StartDistanceAlongSpline, |
Given a threshold, recursively sub-divides the spline section until the list of segments (polyline) matches the spline shape. | Components/SplineComponent.h |
|
FVector FindDirectionClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return a unit direction vector of the spline tangent closest to the location. | Components/SplineComponent.h |
|
float FindInputKeyClosestToWorldLocation
(
const FVector& WorldLocation |
Given a location, in world space, return the input key closest to that location. | Components/SplineComponent.h |
|
float FindInputKeyOnSegmentClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return the input key closest to that location on the specified segment. | Components/SplineComponent.h |
|
FVector FindLocationClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return the point on the curve that is closest to the location. | Components/SplineComponent.h |
|
FQuat FindQuaternionClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return a quaternion corresponding to the spline's rotation closest to the location. | Components/SplineComponent.h | |
FVector FindRightVectorClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return a unit direction vector corresponding to the spline's right vector closest to the location. | Components/SplineComponent.h |
|
float FindRollClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return the spline's roll closest to the location, in degrees. | Components/SplineComponent.h |
|
FRotator FindRotationClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return rotation corresponding to the spline's rotation closest to the location. | Components/SplineComponent.h |
|
FVector FindScaleClosestToWorldLocation
(
const FVector& WorldLocation |
Given a location, in world space, return the spline's scale closest to the location. | Components/SplineComponent.h |
|
FVector FindTangentClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return the tangent vector of the spline closest to the location. | Components/SplineComponent.h |
|
FTransform FindTransformClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return an FTransform closest to that location. | Components/SplineComponent.h |
|
FVector FindUpVectorClosestToWorldLocation
(
const FVector& WorldLocation, |
Given a location, in world space, return a unit direction vector corresponding to the spline's up vector closest to the location. | Components/SplineComponent.h |
|
FVector GetArriveTangentAtSplinePoint
(
int32 PointIndex, |
Get the arrive tangent at spline point | Components/SplineComponent.h |
|
FVector GetDefaultUpVector
(
ESplineCoordinateSpace::Type CoordinateSpace |
Gets the default up vector used by this spline | Components/SplineComponent.h |
|
FVector GetDirectionAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return a unit direction vector of the spline tangent there. | Components/SplineComponent.h |
|
FVector GetDirectionAtSplineInputKey
(
float InKey, |
Get unit direction along spline at the provided input key value | Components/SplineComponent.h |
|
FVector GetDirectionAtSplinePoint
(
int32 PointIndex, |
Get the direction at spline point | Components/SplineComponent.h |
|
FVector GetDirectionAtTime
(
float Time, |
Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there. | Components/SplineComponent.h |
|
float GetDistanceAlongSplineAtLocation
(
const FVector& InLocation, |
Get distance along the spline at closest point of the provided input location | Components/SplineComponent.h |
|
float GetDistanceAlongSplineAtSplineInputKey
(
float InKey |
Get distance along the spline at the provided input key value | Components/SplineComponent.h |
|
float GetDistanceAlongSplineAtSplinePoint
(
int32 PointIndex |
Get the distance along the spline at the spline point | Components/SplineComponent.h |
|
virtual TArray< ESplinePointType::Type > GetEnabledSplinePointTypes() |
Get the enabled Spline Point types for this spline component. | Components/SplineComponent.h | |
float GetFloatPropertyAtIndex
(
int32 Index, |
Get a float attribute value by index. | Components/SplineComponent.h |
|
float GetFloatPropertyAtSplineInputKey
(
float InKey, |
Get a float attribute value by parameter. | Components/SplineComponent.h |
|
float GetFloatPropertyAtSplinePoint
(
int32 Index, |
Get a metadata property float value along the spline at spline point | Components/SplineComponent.h |
|
| Components/SplineComponent.h |
|
||
float GetFloatPropertyInputKeyAtIndex
(
int32 Index, |
Get a float attribute parameter by index. | Components/SplineComponent.h |
|
float GetInputKeyAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return the corresponding input key at that point This method has been deprecated because it was incorrectly returning the input key at time. | Components/SplineComponent.h |
|
float GetInputKeyValueAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return the corresponding input key at that point with a fractional component between the current input key and the next as a percentage. | Components/SplineComponent.h |
|
float GetInputKeyValueAtSplinePoint
(
int32 PointIndex |
Get the input key (e.g. the time) of the control point of the spline at the specified index. | Components/SplineComponent.h |
|
float GetInputKeyValueAtTime
(
float Time |
Convert a time value (in the range [0, Duration]) to an input key. | Components/SplineComponent.h |
|
FVector GetLeaveTangentAtSplinePoint
(
int32 PointIndex, |
Get the leave tangent at spline point | Components/SplineComponent.h |
|
void GetLocalLocationAndTangentAtSplinePoint
(
int32 PointIndex, |
Get local location and tangent at a spline point | Components/SplineComponent.h |
|
void GetLocationAndTangentAtSplinePoint
(
int32 PointIndex, |
Get location and tangent at a spline point | Components/SplineComponent.h |
|
FVector GetLocationAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return the point in space where this puts you | Components/SplineComponent.h |
|
FVector GetLocationAtSplineInputKey
(
float InKey, |
Get location along spline at the provided input key value | Components/SplineComponent.h |
|
FVector GetLocationAtSplinePoint
(
int32 PointIndex, |
Get the location at spline point | Components/SplineComponent.h |
|
FVector GetLocationAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the point in space where this puts you | Components/SplineComponent.h |
|
int32 GetNumberOfPropertyValues
(
FName PropertyName |
Get the number of attribute values in a specified attribute channel. | Components/SplineComponent.h |
|
int32 GetNumberOfSplinePoints() |
Get the number of points that make up this spline | Components/SplineComponent.h |
|
int32 GetNumberOfSplineSegments() |
Get the number of segments that make up this spline | Components/SplineComponent.h |
|
FSimpleMulticastDelegate & GetOnSplineChanged() |
Components/SplineComponent.h | ||
FSimpleMulticastDelegate & GetOnSplineDisplayChanged() |
Components/SplineComponent.h | ||
FSimpleMulticastDelegate & GetOnSplineUpdated() |
Components/SplineComponent.h | ||
FQuat GetQuaternionAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return a quaternion corresponding to the spline's rotation there. | Components/SplineComponent.h | |
FQuat GetQuaternionAtSplineInputKey
(
float InKey, |
Get quaternion corresponding to rotation along spline at the provided input key value | Components/SplineComponent.h | |
FQuat GetQuaternionAtSplinePoint
(
int32 PointIndex, |
Get the rotation at spline point as a quaternion | Components/SplineComponent.h | |
FQuat GetQuaternionAtTime
(
float Time, |
Given a time from 0 to the spline duration, return a quaternion corresponding to the spline's rotation there. | Components/SplineComponent.h | |
FVector GetRightVectorAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return a unit direction vector corresponding to the spline's right vector there. | Components/SplineComponent.h |
|
FVector GetRightVectorAtSplineInputKey
(
float InKey, |
Get right vector at the provided input key value | Components/SplineComponent.h |
|
FVector GetRightVectorAtSplinePoint
(
int32 PointIndex, |
Get the right vector at spline point | Components/SplineComponent.h |
|
FVector GetRightVectorAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the spline's right vector there. | Components/SplineComponent.h |
|
float GetRollAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return the spline's roll there, in degrees. | Components/SplineComponent.h |
|
float GetRollAtSplineInputKey
(
float InKey, |
Get roll in degrees at the provided input key value | Components/SplineComponent.h |
|
float GetRollAtSplinePoint
(
int32 PointIndex, |
Get the amount of roll at spline point, in degrees | Components/SplineComponent.h |
|
float GetRollAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the spline's roll there, in degrees. | Components/SplineComponent.h |
|
FRotator GetRotationAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return a rotation corresponding to the spline's rotation there. | Components/SplineComponent.h |
|
FRotator GetRotationAtSplineInputKey
(
float InKey, |
Get rotator corresponding to rotation along spline at the provided input key value | Components/SplineComponent.h |
|
FRotator GetRotationAtSplinePoint
(
int32 PointIndex, |
Get the rotation at spline point as a rotator | Components/SplineComponent.h |
|
FRotator GetRotationAtTime
(
float Time, |
Given a time from 0 to the spline duration, return a rotation corresponding to the spline's position and direction there. | Components/SplineComponent.h |
|
FVector GetScaleAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return the spline's scale there. | Components/SplineComponent.h |
|
FVector GetScaleAtSplineInputKey
(
float InKey |
Get scale at the provided input key value | Components/SplineComponent.h |
|
FVector GetScaleAtSplinePoint
(
int32 PointIndex |
Get the scale at spline point | Components/SplineComponent.h |
|
FVector GetScaleAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the spline's scale there. | Components/SplineComponent.h |
|
FSpline GetSpline() |
Components/SplineComponent.h | ||
FSplineCurves GetSplineCurves() |
Safe for caching spline data in the legacy format. Will auto convert data if necessary. | Components/SplineComponent.h | |
float GetSplineLength() |
Returns total length along this spline | Components/SplineComponent.h |
|
FSplinePoint GetSplinePointAt
(
int32 PointIndex, |
Gets the spline point of the spline at the specified index | Components/SplineComponent.h |
|
virtual const USplineMetadata * GetSplinePointsMetadata () |
Components/SplineComponent.h | ||
virtual USplineMetadata * GetSplinePointsMetadata () |
Components/SplineComponent.h | ||
const FInterpCurveVector & GetSplinePointsPosition () |
Components/SplineComponent.h | ||
| Todo: deprecate | Components/SplineComponent.h | ||
| Components/SplineComponent.h | |||
const FInterpCurveQuat & GetSplinePointsRotation () |
Components/SplineComponent.h | ||
| Components/SplineComponent.h | |||
const FInterpCurveVector & GetSplinePointsScale () |
Components/SplineComponent.h | ||
ESplinePointType::Type GetSplinePointType
(
int32 PointIndex |
Get the type of a spline point | Components/SplineComponent.h |
|
FVector GetTangentAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return the tangent vector of the spline there. | Components/SplineComponent.h |
|
FVector GetTangentAtSplineInputKey
(
float InKey, |
Get tangent along spline at the provided input key value | Components/SplineComponent.h |
|
FVector GetTangentAtSplinePoint
(
int32 PointIndex, |
Get the tangent at spline point. This fetches the Leave tangent of the point. | Components/SplineComponent.h |
|
FVector GetTangentAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the spline's tangent there. | Components/SplineComponent.h |
|
float GetTimeAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return the corresponding time at that point | Components/SplineComponent.h |
|
FTransform GetTransformAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return an FTransform corresponding to that point on the spline. | Components/SplineComponent.h |
|
FTransform GetTransformAtSplineInputKey
(
float InKey, |
Get transform at the provided input key value | Components/SplineComponent.h |
|
FTransform GetTransformAtSplinePoint
(
int32 PointIndex, |
Get the transform at spline point | Components/SplineComponent.h |
|
FTransform GetTransformAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the spline's transform at the corresponding position. | Components/SplineComponent.h |
|
FVector GetUpVectorAtDistanceAlongSpline
(
float Distance, |
Given a distance along the length of this spline, return a unit direction vector corresponding to the spline's up vector there. | Components/SplineComponent.h |
|
FVector GetUpVectorAtSplineInputKey
(
float InKey, |
Get up vector at the provided input key value | Components/SplineComponent.h |
|
FVector GetUpVectorAtSplinePoint
(
int32 PointIndex, |
Get the up vector at spline point | Components/SplineComponent.h |
|
FVector GetUpVectorAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the spline's up vector there. | Components/SplineComponent.h |
|
FVector GetVectorPropertyAtSplinePoint
(
int32 Index, |
Get a metadata property vector value along the spline at spline point | Components/SplineComponent.h |
|
int32 GetVersion() |
Components/SplineComponent.h | ||
FVector GetWorldDirectionAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return a unit direction vector of the spline tangent there, in world space. | Components/SplineComponent.h |
|
FVector GetWorldDirectionAtTime
(
float Time, |
Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there. | Components/SplineComponent.h |
|
FVector GetWorldLocationAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return the point in world space where this puts you | Components/SplineComponent.h |
|
FVector GetWorldLocationAtSplinePoint
(
int32 PointIndex |
Get the world location at spline point | Components/SplineComponent.h |
|
FVector GetWorldLocationAtTime
(
float Time, |
Given a time from 0 to the spline duration, return the point in space where this puts you | Components/SplineComponent.h |
|
FRotator GetWorldRotationAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return a rotation corresponding to the spline's rotation there, in world space. | Components/SplineComponent.h |
|
FRotator GetWorldRotationAtTime
(
float Time, |
Given a time from 0 to the spline duration, return a rotation corresponding to the spline's position and direction there, in world space. | Components/SplineComponent.h |
|
FVector GetWorldTangentAtDistanceAlongSpline
(
float Distance |
Given a distance along the length of this spline, return the tangent vector of the spline there, in world space. | Components/SplineComponent.h |
|
bool IsClosedLoop() |
Check whether the spline is a closed loop or not | Components/SplineComponent.h |
|
void PopulateFromLegacy() |
Components/SplineComponent.h |
|
|
void RemovePropertyAtIndex
(
int32 Index, |
Remove an attribute value by index. | Components/SplineComponent.h |
|
bool RemovePropertyChannel
(
FName PropertyName |
Remove an attribute channel. | Components/SplineComponent.h |
|
void RemoveSplinePoint
(
int32 Index, |
Removes point at specified index from the spline | Components/SplineComponent.h |
|
void ResetToDefault() |
Reset the spline to its default shape (a spline of two points) | Components/SplineComponent.h | |
void SetClosedLoop
(
bool bInClosedLoop, |
Specify whether the spline is a closed loop or not. | Components/SplineComponent.h |
|
void SetClosedLoopAtPosition
(
bool bInClosedLoop, |
Specify whether the spline is a closed loop or not, and if so, the input key corresponding to the loop point | Components/SplineComponent.h |
|
void SetDefaultUpVector
(
const FVector& UpVector, |
Sets the default up vector used by this spline | Components/SplineComponent.h |
|
void SetDrawDebug
(
bool bShow |
Specify whether this spline should be rendered when the Editor/Game spline show flag is set | Components/SplineComponent.h |
|
void SetFloatPropertyAtIndex
(
int32 Index, |
Set a float attribute value by index. | Components/SplineComponent.h |
|
int32 SetFloatPropertyAtSplineInputKey
(
float InKey, |
Add a float attribute value by parameter. | Components/SplineComponent.h |
|
int32 SetFloatPropertyInputKeyAtIndex
(
int32 Index, |
Set a float attribute parameter by index. | Components/SplineComponent.h |
|
void SetLocationAtSplinePoint
(
int32 PointIndex, |
Move an existing point to a new location | Components/SplineComponent.h |
|
virtual void SetOverrideConstructionScript
(
bool InOverride |
Set the spline to be edited outside of the construction script | Components/SplineComponent.h |
|
void SetQuaternionAtSplinePoint
(
int32 PointIndex, |
Components/SplineComponent.h |
|
|
void SetRotationAtSplinePoint
(
int32 PointIndex, |
Set the rotation of an existing spline point. | Components/SplineComponent.h |
|
void SetScaleAtSplinePoint
(
int32 PointIndex, |
Set the scale at a given spline point | Components/SplineComponent.h |
|
void SetSelectedSplineSegmentColor
(
const FLinearColor& SegmentColor |
Specify selected spline component segment color in the editor | Components/SplineComponent.h |
|
| Components/SplineComponent.h | |||
void SetSpline
(
const FSplineCurves& InSplineCurves |
Components/SplineComponent.h | ||
void SetSplineLocalPoints
(
const TArray< FVector >& Points |
Sets the spline to an array of local space points | Components/SplineComponent.h |
|
void SetSplinePoints
(
const TArray< FVector >& Points, |
Sets the spline to an array of points | Components/SplineComponent.h |
|
void SetSplinePointType
(
int32 PointIndex, |
Specify the type of a spline point | Components/SplineComponent.h |
|
void SetSplineWorldPoints
(
const TArray< FVector >& Points |
Sets the spline to an array of world space points | Components/SplineComponent.h |
|
void SetTangentAtSplinePoint
(
int32 PointIndex, |
Specify the tangent at a given spline point | Components/SplineComponent.h |
|
void SetTangentColor
(
const FLinearColor& TangentColor |
Specify selected spline component segment color in the editor | Components/SplineComponent.h |
|
void SetTangentsAtSplinePoint
(
int32 PointIndex, |
Specify the tangents at a given spline point | Components/SplineComponent.h |
|
void SetUnselectedSplineSegmentColor
(
const FLinearColor& SegmentColor |
Specify unselected spline component segment color in the editor | Components/SplineComponent.h |
|
void SetUpVectorAtSplinePoint
(
int32 PointIndex, |
Specify the up vector at a given spline point | Components/SplineComponent.h |
|
void SetWorldLocationAtSplinePoint
(
int32 PointIndex, |
Move an existing point to a new world location | Components/SplineComponent.h |
|
bool SupportsAttributes() |
Components/SplineComponent.h |
|
|
void SynchronizeSplines() |
Reset all spline data to match the current state of SplineCurves | Components/SplineComponent.h | |
virtual void UpdateSpline() |
Update the spline tangents and SplineReparamTable | Components/SplineComponent.h |
|
Overridden from UPrimitiveComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FPrimitiveSceneProxy * CreateSceneProxy() |
Creates a proxy to represent the primitive to the scene manager in the rendering thread. | Components/SplineComponent.h | |
virtual bool GetIgnoreBoundsForEditorFocus () |
Whether or not the bounds of this component should be considered when focusing the editor camera to an actor with this component in it. | Components/SplineComponent.h | |
virtual void GetUsedMaterials
(
TArray< UMaterialInterface* >& OutMaterials, |
Retrieves the materials used in this component | Components/SplineComponent.h | |
virtual void PushSelectionToProxy() |
Pushes new selection state to the render thread primitive proxy | Components/SplineComponent.h |
Overridden from USceneComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBoxSphereBounds CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. | Components/SplineComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TStructOnScope< FActorComponentInstanceData > GetComponentInstanceData() |
Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation | Components/SplineComponent.h | |
virtual void OnRegister() |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | Components/SplineComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
Components/SplineComponent.h | ||
virtual void PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
Components/SplineComponent.h | ||
virtual void PostLoad() |
Components/SplineComponent.h | ||
virtual void PostTransacted
(
const FTransactionObjectEvent& TransactionEvent |
Components/SplineComponent.h | ||
virtual void Serialize
(
FArchive& Ar |
Components/SplineComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetSegmentLength
(
const int32 Index, |
Returns the length of the specified spline segment up to the parametric value given | Components/SplineComponent.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Draw
(
FPrimitiveDrawInterface* PDI, |
Helper function to draw a vector curve | Components/SplineComponent.h | |
static FSpline GetDefaultSpline() |
Components/SplineComponent.h | ||
static FName GetSplinePropertyName() |
Return the name of the authoritative spline property. | Components/SplineComponent.h | |
static TSet< FName > GetSplinePropertyNames() |
Return the set of names of the backing spline properties. | Components/SplineComponent.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAllowSplineEditingPerInstance_DEPRECATED | bool | Components/SplineComponent.h | ||
| SplineInfo_DEPRECATED | FInterpCurveVector | Deprecated - please use GetSplinePointsPosition() to fetch this FInterpCurve | Components/SplineComponent.h | |
| SplineReparamTable_DEPRECATED | FInterpCurveFloat | Components/SplineComponent.h | ||
| SplineRotInfo_DEPRECATED | FInterpCurveQuat | Deprecated - please use GetSplinePointsRotation() to fetch this FInterpCurve | Components/SplineComponent.h | |
| SplineScaleInfo_DEPRECATED | FInterpCurveVector | Deprecated - please use GetSplinePointsScale() to fetch this FInterpCurve | Components/SplineComponent.h |