Navigation
Unreal Engine C++ API Reference > Plugins > GeometryCache
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGeometryCacheTrack
- UDEPRECATED_GeometryCacheTrack_FlipbookAnimation
- UDEPRECATED_GeometryCacheTrack_TransformAnimation
- UDEPRECATED_GeometryCacheTrack_TransformGroupAnimation
- UGeometryCacheTrackAbcFile
- UGeometryCacheTrackStreamable
- UGeometryCacheTrackUsd
References
Module | GeometryCache |
Header | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCache/Classes/GeometryCacheTrack.h |
Include | #include "GeometryCacheTrack.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, BlueprintType, Config=Engine)
class UGeometryCacheTrack : public UObject
Remarks
Base class for GeometryCache tracks, stores matrix animation data and implements functionality for it
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
float | Duration | The duration of this track's animation. |
![]() |
TArray< FMatrix > | MatrixSamples | Matrix sample data, both FMatrix and time |
![]() |
TArray< float > | MatrixSampleTimes | |
![]() |
uint32 | NumMaterials | Number of materials for this track |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UGeometryCacheTrack
(
const FObjectInitializer& ObjectInitializer |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddMatrixSample
(
const FMatrix& Matrix, |
AddMatrixSample, Adds a single matrix animation sample (recalculates duration according to SampleTime) |
![]() |
const uint32 | FindSampleIndexFromTime
(
const TArray< float >& SampleTimes, |
FindSampleIndexFromTime uses binary search to find the closest index to Time inside Samples |
![]() ![]() |
float | GetDuration () |
Get the value of the duration property. |
![]() ![]() ![]() |
uint64 | GetHash () |
Return the hash of the mesh data of the track |
![]() ![]() ![]() |
const float | GetMaxSampleTime, returns the time for the last sample Not the same as the animation length since it might not start at time 0 | |
![]() ![]() |
bool | GetMeshDataAtSampleIndex
(
int32 SampleIndex, |
Get the mesh data for the specified sample index |
![]() ![]() |
bool | GetMeshDataAtTime
(
float Time, |
Get the mesh data for the specified time |
![]() ![]() |
const uint32 | GetNumMaterials, total number of materials inside this track (depends on batches) | |
![]() ![]() |
const FGeometryCacheTrackSampleInfo & | GetSampleInfo
(
float Time, |
Get the info for the sample displayed at the given time. |
![]() ![]() |
void | SetDuration
(
float NewDuration |
Set the duration property. |
![]() ![]() |
void | SetMatrixSamples
(
const TArray< FMatrix >& Matrices, |
SetMatrixSamples, Set the Matrix animation Samples |
![]() ![]() |
const bool | UpdateBoundsData
(
const float Time, |
UpdateBoundsData |
![]() ![]() |
const bool | UpdateMatrixData
(
const float Time, |
UpdateMatrixData |
![]() ![]() |
const bool | UpdateMeshData
(
const float Time, |
UpdateMeshData* |
![]() ![]() |
void | UpdateTime
(
float Time, |
Update the current time of the track |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |