Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/UMovieScenePlayRateCurve
Description
- Attempt to transform a time-warped time into its corresponding non-time-warped time within a specified unwarped range.
-
this operation can fail for warped times that have no representation in the non-time-warped space
Virtual Inheritance
- UMovieSceneTimeWarpGetter::InverseRemapTimeWithinRange → UMovieScenePlayRateCurve::InverseRemapTimeWithinRange
Derived Overrides
| Name | InverseRemapTimeWithinRange |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/Variants/MovieScenePlayRateCurve.h |
| Include Path | #include "Variants/MovieScenePlayRateCurve.h" |
| Source | /Engine/Source/Runtime/MovieScene/Private/Variants/MovieScenePlayRateCurve.cpp |
virtual bool InverseRemapTimeWithinRange
(
FFrameTime InTime,
FFrameTime RangeStart,
FFrameTime RangeEnd,
const TFunctionRef < bool)> & VisitorCallback
) const
The resulting unwarped frame time, or nothing if the time does not map to an unwarped time.
Parameters
| Name | Remarks |
|---|---|
| InValue | The time-warped time to remap |
| InTimeHint | A time 'hint' in the unwarped space to serve as a guide where there may be more than one solution. For example; consider a looping or cycling warp with duration 10, calling this function with InValue=3. There are an infinite number of unwarped times that can result in frame 3 (ie, every frame where %3==0). If we want to get the time that resulted in this from the 10th loop, we could pass the middle frame of that loop as the hint (ie, frame 95). The result would be the closest frame to frame 95 that warps to frame 3. |
| Params | Parameter structure to control the inverse algorithm, eg limiting it to only searching one direction, ignoring clamping and cycles etc. |