Navigation
API > API/Plugins > API/Plugins/GeometryCache
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGeometryCacheTrack
- UGeometryCacheTrackStreamable
References
| Module | GeometryCache |
| Header | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCache/Classes/GeometryCacheTrackStreamable.h |
| Include | #include "GeometryCacheTrackStreamable.h" |
Syntax
UCLASS&40;CollapseCategories, HideCategories&61;Object, BlueprintType, Config&61;Engine&41;
class UGeometryCacheTrackStreamable : public UGeometryCacheTrack
Remarks
Derived GeometryCacheTrack class, used for Transform animation.
FGeometryCacheTrackStreamableRenderResource keeps a reference to the track. Be sure to keep the implementation of this class valid so it properly releases the render resoruce before making any changes to this object that may affect the render thread.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UGeometryCacheCodecBase > | Codec | Codec for this track | |
| FGeometryCachePreprocessor * | Preprocessor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UGeometryCacheTrackStreamable
(
const FObjectInitializer& ObjectInitializer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMeshSample
(
const FGeometryCacheMeshData& MeshData, |
Add a GeometryCacheMeshData sample to the Track | |
| void | AddVisibilitySample
(
const bool bVisible, |
||
| void | BeginCoding
(
UGeometryCacheCodecBase* SetCodec, |
Begin coding and set the codec to use for this track. | |
| bool | EndCoding () |
Finish up coding. Return true if the track has samples | |
| void | FindSampleIndexesFromTime
(
float Time, |
Find the two frames closest to the given time. | |
| const uint32 | FindSampleIndexFromTime
(
const float Time, |
FindSampleIndexFromTime uses binary search to find the closest index to Time inside Samples | |
| FStreamedGeometryCacheChunk & | GetChunk
(
int32 ChunkID |
||
| const FStreamedGeometryCacheChunk & | GetChunk
(
int32 ChunkID |
||
| void | GetChunksForTimeRange
(
float StartTime, |
Get the CunksIds that need to be loaded to display any frames falling within the given time range. | |
| FGeometryCacheTrackStreamableRenderResource * | |||
| const FGeometryCacheTrackStreamableSampleInfo & | GetSampleInfo
(
int32 SampleID |
Get the info for the sample with the given ID. | |
| const FVisibilitySample & | GetVisibilitySample
(
float Time, |
||
| void | Creates a totally invalid UGeometryCacheTrackStreamable instance specially set up to be very large and then tries to serialize it to smoke-test the serialization of large assets and bulk data. |
Overridden from UGeometryCacheTrack
| Type | Name | Description | |
|---|---|---|---|
| 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 | GetMeshDataAtTime
(
float Time, |
Get the mesh data for the specified time | |
| const FGeometryCacheTrackSampleInfo & | GetSampleInfo
(
float Time, |
Get the info for the sample displayed at the given time. | |
| void | SetDuration
(
float NewDuration |
Set the duration property. | |
| const bool | UpdateBoundsData
(
const float Time, |
UpdateBoundsData | |
| const bool | UpdateMeshData
(
const float Time, |
UpdateMeshData* |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | Called to finish destroying the object. | ||
| 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). | |
| bool | Called to check if the object is ready for FinishDestroy. | ||
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |