Navigation
API > API/Plugins > API/Plugins/ChaosCaching > API/Plugins/ChaosCaching/Chaos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AChaosCacheManager
- AChaosCachePlayer
References
| Module | ChaosCaching |
| Header | /Engine/Plugins/Experimental/ChaosCaching/Source/ChaosCaching/Public/Chaos/CacheManagerActor.h |
| Include | #include "Chaos/CacheManagerActor.h" |
Syntax
UCLASS&40;Experimental, MinimalAPI&41;
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. | ||
| bool | CanRecord () |
Returns true if this cache manager is allowed to record caches. | |
| void | |||
| 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. | |
| FObservedComponent * | FindObservedComponent
(
UPrimitiveComponent* InComponent |
||
| FObservedComponent & | FindOrAddObservedComponent
(
UPrimitiveComponent* InComponent |
||
| 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 | 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 | SetCacheCollection
(
UChaosCacheCollection* InCacheCollection |
Change the cache collection for this player if the cache is playing or recording this will have no effect | |
| void | SetStartTime
(
float InStartTime |
End UObject interface Expose StartTime property to Sequencer. | |
| 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. |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
AActor interface | |
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Overridable function called whenever this actor is being removed from a level | |
| void | TickActor
(
float DeltaTime, |
AActor interface |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | End AActor interface UObject interface |
Typedefs
| Name | Description |
|---|---|
| FTickObservedFunction |