Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/FSampleTrackShared
Description
Removes samples from the track which don't present any value anywhere. This may only shift time indices and not actually remove any value. Data passed in here is slightly redundant, but passed for performance reasons.
Virtual Inheritance
- FSampleTrackBase::RemoveObsoleteTimes → FSampleTrackShared::RemoveObsoleteTimes
Derived Overrides
| Name | RemoveObsoleteTimes |
| Type | function |
| Header File | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Tracks/SampleTrack.h |
| Include Path | #include "Tracks/SampleTrack.h" |
virtual int32 RemoveObsoleteTimes
(
int32 InNumTimesToRemove,
const TArray < bool > & InRemoveTimeIndexArray,
const TArray < int32 > & InOldTimeIndexToNewTimeIndex
)
Parameters
| Name | Remarks |
|---|---|
| InNumTimesToRemove | The number of samples to remove |
| InRemoveTimeIndexArray | A bool array with a true value for each time index to remove (.Count(true) == InNumTimesToRemove |
| InOldTimeIndexToNewTimeIndex | An array mapping the time indices from old to new |