Navigation
API > API/Plugins > API/Plugins/ChaosCaching > API/Plugins/ChaosCaching/Chaos
Inheritance Hierarchy
- AActor
- AChaosCacheManager
- AChaosCachePlayer
References
| Module | ChaosCaching |
| Header | /Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/CacheManagerActor.h |
| Include | #include "Chaos/CacheManagerActor.h" |
Syntax
UCLASS (Experimental, MinimalAPI)
class AChaosCacheManager : public AActor
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCanRecord | Determines if the actor is allowed to record a cache. | |
| bool | bIsSimulating | True if observed components are actively simulating, dynamically or kinematically. | |
| TObjectPtr< UChaosCacheCollection > | CacheCollection | The Cache Collection asset to use for this observer. | |
| ECacheMode | CacheMode | How to use the cache - playback or record | |
| EStartMode | StartMode | How to trigger the cache record or playback, timed will start counting at BeginPlay, Triggered will begin counting from when the owning cache manager is requested to trigger the cache action | |
| float | StartTime | Defines the (random access) time that represents the rest pose of the components managed by this cache. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AChaosCacheManager
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FObservedComponent & | AddNewObservedComponent
(
UPrimitiveComponent* InComponent |
||
| void | Initialize the cache adapters before playing/recording the cache. | ||
| void | BeginPlay () |
AActor interface | |
| bool | CanEditChange
(
const FProperty* InProperty |
||
| bool | CanRecord () |
Returns true if this cache manager is allowed to record caches. | |
| void | Clear all the observed components | ||
| bool | ContainsProperty
(
const UStruct* Struct, |
||
| void | EnablePlayback
(
int32 Index, |
Enable playback for a specific component using its index in the list of observed component | |
| void | EnablePlaybackByCache
(
FName InCacheName, |
Enable playback for a specific component using its cache name | |
| void | EndEvaluate () |
Clean the cache adapters after playing/recording the cache. | |
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
||
| FObservedComponent * | FindObservedComponent
(
UPrimitiveComponent* InComponent |
||
| void | FindOrAddObservedComponent
(
UPrimitiveComponent* InComponent, |
Find or add a primitive component to a cache manager | |
| const TArray< FObservedComponent > & | Accessor to the manager observed components (read only) | ||
| TArray< FObservedComponent > & | Accessor to the manager observed components (read/write) | ||
| void | HandlePostSolve
(
Chaos::FReal InDt, |
Handles physics thread post-solve (record data for components under record) | |
| void | HandlePreBuffer
(
Chaos::FReal InDt, |
Handles physics thread pre-buffer (mark dirty kinematic particles) | |
| void | HandlePreSolve
(
Chaos::FReal InDt, |
End AActor interface Handles physics thread pre-solve (push kinematic data for components under playback) | |
| void | HandleTeardown
(
Chaos::FPhysicsSolverEvents* InSolver |
Handles solver teardown due to solver destruction / stream-out | |
| void | OnStartFrameChanged
(
Chaos::FReal InT |
Evaluates and sets state for all observed components at the specified time. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | RemoveObservedComponent
(
UPrimitiveComponent* InComponent |
Remove a primitive component from the cache manager | |
| void | Resets all components back to the world space transform they had when the cache for them was originally recorded if one is available | ||
| void | ResetSingleTransform
(
int32 InIndex |
Resets the component at the specified index in the observed list back to the world space transform it had when the cache for it was originally recorded if one is available | |
| void | SelectComponent
(
int32 InIndex |
Set the component at the specified index in the observed array to be the selected component in the outliner. | |
| void | Serialize
(
FArchive& Ar |
End AActor interface UObject interface | |
| void | SetCacheCollection
(
UChaosCacheCollection* InCacheCollection |
Change the cache collection for this player if the cache is playing or recording this will have no effect | |
| void | SetCurrentTime
(
float CurrentTime |
||
| void | SetObservedComponentProperties
(
const ECacheMode& NewCacheMode |
||
| void | SetStartTime
(
float InStartTime |
End UObject interface Expose StartTime property to Sequencer. GetStartTime will be called on keys. | |
| void | TickActor
(
float DeltaTime, |
AActor interface | |
| void | TriggerAll () |
Triggers the recording or playback of all observed components | |
| void | TriggerComponent
(
UPrimitiveComponent* InComponent |
Triggers a component to play or record. | |
| void | TriggerComponentByCache
(
FName InCacheName |
Triggers a component to play or record. |
Typedefs
| Name | Description |
|---|---|
| FTickObservedFunction |