Navigation
API > API/Plugins > API/Plugins/GeometryCache > API/Plugins/GeometryCache/UGeometryCacheTrack
References
| Module | GeometryCache |
| Header | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCache/Classes/GeometryCacheTrack.h |
| Include | #include "GeometryCacheTrack.h" |
| Source | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCache/Private/GeometryCacheTrack.cpp |
const uint32 FindSampleIndexFromTime
&40;
const TArray< float > & SampleTimes,
const float Time,
const bool bLooping
&41;
Remarks
FindSampleIndexFromTime uses binary search to find the closest index to Time inside Samples const uint32
Parameters
| Name | Description |
|---|---|
| SampleTimes | Array of Sample times used for the search |
| Time | Time for which the closest index has to be found |
| bLooping | Whether or not we should fmod Time according to the last entry in SampleTimes |