Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/Variants
References
| Module | MovieScene |
| Header | /Engine/Source/Runtime/MovieScene/Public/Variants/MovieSceneTimeWarpVariant.h |
| Include | #include "Variants/MovieSceneTimeWarpVariant.h" |
Syntax
USTRUCT (BlueprintType )
struct FMovieSceneTimeWarpVariant
Remarks
Numeric variant type that represents a 'time-warp' operation transforming a time into another time.
By default this variant is a literal value that represents a play rate of 1.0 (ie, a 1:1 mapping), but it can be customized to provide a wide range of different transformations such as looping, clamping and custom curves
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default construction: initializes this struct to a constant play rate of 1.0 | |||
FMovieSceneTimeWarpVariant
(
double InLiteralPlayRate |
Initialize this time-warp with a specific constant play rate | ||
FMovieSceneTimeWarpVariant
(
const FMovieSceneTimeWarpFixedFrame& In |
Initialize this time-warp with a specific fixed frame number | ||
FMovieSceneTimeWarpVariant
(
const FMovieSceneTimeWarpLoop& In |
Initialize this time-warp with a looping time-warp | ||
FMovieSceneTimeWarpVariant
(
const FMovieSceneTimeWarpClamp& In |
Initialize this time-warp with a time-warp that clamps the time to a specific range | ||
| Initialize this time-warp with custom time-warp getter | |||
FMovieSceneTimeWarpVariant
(
const FMovieSceneTimeWarpVariant& Other |
Copy construction that performs a shallow copy | ||
| Move-construction |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMovieSceneTimeWarpClamp | AsClamp () |
Cast this variant to a clamped range | |
| FMovieSceneTimeWarpClampFloat | AsClampFloat () |
Cast this variant to a floating-point clamped range | |
| UMovieSceneTimeWarpGetter * | AsCustom () |
Cast this variant to a custom time warp implementation | |
| double | Retrieve this time-warp's constant play rate. | ||
| float | Retrieve this time-warp's constant play rate clampoed to the range of a float | ||
| FMovieSceneTimeWarpFixedFrame | AsFixedTime () |
Cast this variant to a fixed time. | |
| FMovieSceneTimeWarpFrameRate | AsFrameRate () |
Cast this variant to a frame-rate conversion | |
| FMovieSceneTimeWarpLoop | AsLoop () |
Cast this variant to a frame-based loop | |
| FMovieSceneTimeWarpLoopFloat | AsLoopFloat () |
Cast this variant to a floating-point loop | |
| TRange< FFrameTime > | ComputeTraversedHull
(
const TRange< FFrameTime >& Range |
Given a continuous input range, compute the hull of warped times that are contained. | |
| FMovieSceneTimeWarpVariant | DeepCopy
(
UObject* NewOuter |
Return a deep copy of this variant. | |
| bool | ExportTextItem
(
FString& ValueStr, |
||
| EMovieSceneTimeWarpType | GetType () |
Retrieve the type of this variant as an enumeration | |
| bool | ImportTextItem
(
const TCHAR*& Buffer, |
||
| TOptional< FFrameTime > | InverseRemapTimeCycled
(
FFrameTime WarpedTime, |
Attempt to transform a time-warped time into its corresponding non-time-warped time. | |
| bool | InverseRemapTimeWithinRange
(
FFrameTime InTime, |
Attempt to transform a time-warped time into its corresponding non-time-warped time within a specified unwarped range. | |
| FFrameTime | RemapTime
(
FFrameTime InTime |
Remap the specified time using this time-warp | |
| void | ScaleBy
(
double ScaleFactor |
Scale this time-warp by a factor | |
| bool | Serialize
(
FArchive& Ar |
||
| bool | SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
||
| void | Set
(
const FMovieSceneTimeWarpClampFloat& InValue |
Make this time-warp clamp to the specified bounds | |
| void | Set
(
double InLiteralPlayRate |
Make this time-warp play at a constant play-rate | |
| void | Set
(
const FMovieSceneTimeWarpFixedFrame& InValue |
Make this time-warp always return a fixed frame number | |
| void | Set
(
const FMovieSceneTimeWarpFrameRate& InValue |
Make this time-warp transform from one frame rate to another | |
| void | Set
(
const FMovieSceneTimeWarpLoop& InValue |
Make this time-warp loop within the specified bounds | |
| void | Set
(
const FMovieSceneTimeWarpClamp& InValue |
Make this time-warp clamp to the specified bounds | |
| void | Set
(
const FMovieSceneTimeWarpLoopFloat& InValue |
Make this time-warp loop within the specified bounds | |
| void | Set
(
UMovieSceneTimeWarpGetter* InDynamicValue |
Make this time-warp a custom dynamic value | |
| FMovieSceneTimeWarpVariant | ShallowCopy () |
Return a shallow copy of this variant via bit-wise copy. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FMovieSceneTimeWarpVariant & | operator=
(
double InLiteralPlayRate |
Assignment from a literal play rate | |
| FMovieSceneTimeWarpVariant & | Move-assignment | ||
| FMovieSceneTimeWarpVariant & | operator=
(
const FMovieSceneTimeWarpVariant& Other |
Copy-assignment that performs a shallow copy |