Navigation
API > API/Plugins > API/Plugins/GeometryCache
Base class for GeometryCache tracks, stores matrix animation data and implements functionality for it
| Name | UGeometryCacheTrack |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCache/Classes/GeometryCacheTrack.h |
| Include Path | #include "GeometryCacheTrack.h" |
Syntax
UCLASS (MinimalAPI, CollapseCategories, HideCategories=Object, BlueprintType, Config=Engine)
class UGeometryCacheTrack : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGeometryCacheTrack
Derived Classes
UGeometryCacheTrack derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UGeometryCacheTrack
(
const FObjectInitializer& ObjectInitializer |
GeometryCacheTrack.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UGeometryCacheTrack() |
GeometryCacheTrack.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddMatrixSample
(
const FMatrix& Matrix, |
AddMatrixSample, Adds a single matrix animation sample (recalculates duration according to SampleTime) | GeometryCacheTrack.h | |
virtual float GetDuration() |
Get the value of the duration property. | GeometryCacheTrack.h | |
virtual uint64 GetHash() |
Return the hash of the mesh data of the track | GeometryCacheTrack.h | |
virtual const float GetMaxSampleTime() |
GetMaxSampleTime, returns the time for the last sample Not the same as the animation length since it might not start at time 0 | GeometryCacheTrack.h | |
virtual bool GetMeshDataAtSampleIndex
(
int32 SampleIndex, |
Get the mesh data for the specified sample index | GeometryCacheTrack.h | |
virtual bool GetMeshDataAtTime
(
float Time, |
Get the mesh data for the specified time | GeometryCacheTrack.h | |
const uint32 GetNumMaterials() |
GetNumMaterials, total number of materials inside this track (depends on batches) | GeometryCacheTrack.h | |
virtual const FGeometryCacheTrackSampleInfo & GetSampleInfo
(
float Time, |
Get the info for the sample displayed at the given time. | GeometryCacheTrack.h | |
virtual void SetDuration
(
float NewDuration |
Set the duration property. | GeometryCacheTrack.h | |
| SetMatrixSamples, Set the Matrix animation Samples | GeometryCacheTrack.h | ||
virtual const bool UpdateBoundsData
(
const float Time, |
UpdateBoundsData | GeometryCacheTrack.h | |
virtual const bool UpdateMatrixData
(
const float Time, |
UpdateMatrixData | GeometryCacheTrack.h | |
virtual const bool UpdateMeshData
(
const float Time, |
UpdateMeshData* | GeometryCacheTrack.h | |
virtual void UpdateTime
(
float Time, |
Update the current time of the track | GeometryCacheTrack.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
GeometryCacheTrack.h | ||
virtual void Serialize
(
FArchive& Ar |
GeometryCacheTrack.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const uint32 FindSampleIndexFromTime
(
const TArray< float >& SampleTimes, |
FindSampleIndexFromTime uses binary search to find the closest index to Time inside Samples | GeometryCacheTrack.h |