Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlendSpace
Description
Resets a cached set of blend samples to match a given input time. All samples will be advanced using sync marker if possible, otherwise, their time will just be set match the input normalized time.
| Name | ResetBlendSamples |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/BlendSpace.h |
| Include Path | #include "Animation/BlendSpace.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/BlendSpace.cpp |
void ResetBlendSamples
(
TArray < FBlendSampleData > & InOutSampleDataCache,
float InNormalizedCurrentTime,
bool bLooping,
bool bMatchSyncPhases
) const
Parameters
| Name | Remarks |
|---|---|
| InOutSampleDataCache | The sample data cache to use. |
| InNormalizedCurrentTime | The time to match when advancing samples. |
| bLooping | If true, advance samples as a looping blend space would. |
| bMatchSyncPhases | If true, all follower samples will pass the same amount of markers the leader sample has passed to match its sync phase. Otherwise, followers samples will only match their next valid sync position. |