Navigation
API > API/Plugins > API/Plugins/ChaosCaching > API/Plugins/ChaosCaching/Chaos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UChaosCache
References
Module | ChaosCaching |
Header | /Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/ChaosCache.h |
Include | #include "Chaos/ChaosCache.h" |
Syntax
UCLASS&40;Experimental, MinimalAPI&41;
class UChaosCache : public UObject
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | bCompressChannels | |
![]() ![]() |
TArray< int32 > | ChannelCurveToParticle | Map a curve index in the cache to the original particle index specified when recording |
![]() ![]() |
float | ChannelsCompressionErrorThreshold | |
![]() ![]() |
float | ChannelsCompressionSampleRate | |
![]() ![]() |
TMap< FName, FRichCurves > | ChannelsTracks | Per-particle data, continuous per-frame data |
![]() ![]() |
TMap< FName, FCompressedRichCurves > | CompressedChannelsTracks | |
![]() ![]() |
TMap< FName, FRichCurve > | CurveData | Per component/cache curve data, any continuous data that isn't per-particle can be stored here |
![]() ![]() |
TMap< FName, FParticleTransformTrack > | NamedTransformTracks | |
![]() ![]() ![]() ![]() |
uint32 | NumRecordedFrames | |
![]() ![]() |
TArray< FPerParticleCacheData > | ParticleTracks | Per-particle data, includes transforms, velocities and other per-particle, per-frame data |
![]() ![]() ![]() ![]() |
float | RecordedDuration | |
![]() ![]() |
TArray< int32 > | TrackToParticle | Maps a track index in the cache to the original particle index specified when recording |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UChaosCache () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddFrame_Concurrent
(
FPendingFrameWrite&& InFrame |
Adds a new frame to process to a threadsafe queue for later processing in FlushPendingFrames |
![]() |
FCacheUserToken | Initialise the cache for playback, may not take any actual action on the cache but will provide the caller with a valid cache user token if it is safe to continue with playback | |
![]() |
FCacheUserToken | BeginRecord
(
const UPrimitiveComponent* InComponent, |
Reset and initialize a cache to make it ready to record the specified component |
![]() |
void | BuildSpawnableFromComponent
(
const UPrimitiveComponent* InComponent, |
Initializes the spawnable template from a currently existing component so it can be spawned by the editor when a cache is dragged into the scene. |
![]() |
void | CompressChannelsData
(
float ErrorThreshold, |
|
![]() |
void | EndPlayback
(
FCacheUserToken& InOutToken |
End a playback session for the cache. |
![]() |
void | EndRecord
(
FCacheUserToken& InOutToken |
End the recording session for the cache. |
![]() |
FCacheEvaluationResult | Evaluate
(
const FCacheEvaluationContext& InContext, |
Evaluate the cache with the specified parameters, returning the evaluated results |
![]() |
void | EvaluateCurves
(
const FPerParticleCacheData& InData, |
|
![]() |
void | EvaluateEvents
(
FPlaybackTickRecord& InTickRecord, |
|
![]() |
void | EvaluateSingle
(
int32 InIndex, |
Evaluates a single particle from the tracks array |
![]() |
void | EvaluateTransform
(
const FPerParticleCacheData& InData, |
|
![]() |
FCacheEventTrack & | FindOrAddEventTrack
(
FName InName |
|
![]() |
void | As we record post-simulate of physics, we're almost always taking data from a non-main thread (physics thread). | |
![]() ![]() |
float | GetDuration () |
Gets the recorded duration of the cache |
![]() ![]() |
const FCacheSpawnableTemplate & | Read access to the spawnable template stored in the cache |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Typedefs
Name | Description |
---|---|
FNamedTransformTrack | Per component/cache transform data. |
Constants
Name | Description |
---|---|
CurrentVersion | Version 0 : Pre versioning. |