Navigation
API > API/Runtime > API/Runtime/TimeManagement > API/Runtime/TimeManagement/UTimeManagementBlueprintLibrary
Description
Snaps the given SourceTime to the nearest frame in the specified Destination Framerate. Useful for determining the nearest frame for another resolution. Returns the frame time in the destination frame rate.
| Name | SnapFrameTimeToRate |
| Type | function |
| Header File | /Engine/Source/Runtime/TimeManagement/Public/TimeManagementBlueprintLibrary.h |
| Include Path | #include "TimeManagementBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/TimeManagement/Private/TimeManagementBlueprintLibrary.cpp |
UFUNCTION (BlueprintPure, Meta=(DisplayName="Snap Frame Time"),
Category="Utilities|Time Management")
static FFrameTime SnapFrameTimeToRate
(
const FFrameTime & SourceTime,
const FFrameRate & SourceRate,
const FFrameRate & SnapToRate
)