Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USplineComponent
Description
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. To maintain the same behavior, replace it with GetTimeAtDistanceAlongSpline. To actually get the input key, instead call GetInputKeyValueAtDistanceAlongSpline.
| Name | GetInputKeyAtDistanceAlongSpline |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SplineComponent.h |
| Include Path | #include "Components/SplineComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SplineComponent.cpp |
UFUNCTION (BlueprintCallable, Category=Spline,
Meta=(DeprecatedFunction, DeprecationMessage="Please use GetInputKeyValueAtDistanceAlongSpline to get input key at distance or GetTimeAtDistanceAlongSpline to get time value (normalized to duration) at distance (same logic as deprecated function)."))
float GetInputKeyAtDistanceAlongSpline
(
float Distance
) const