Navigation
API > API/Plugins > API/Plugins/HairStrandsSolver
Groom cache adapter to be able to cache groom simulation data through the chaos cache system
| Name | FGroomCacheAdapter |
| Type | class |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsSolver/Public/GroomCacheAdapter.h |
| Include Path | #include "GroomCacheAdapter.h" |
Syntax
class FGroomCacheAdapter : public Chaos::FComponentCacheAdapter
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FGroomCacheAdapter() |
GroomCacheAdapter.h |
Structs
| Name | Remarks |
|---|---|
| FGroomCacheData | Groom cache aata that will store the readback results |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsLoading | bool | Boolean to check if we are reading the cache or not | GroomCacheAdapter.h | |
| GroomCaches | TMap< UPrimitiveComponent *, FGroomCacheData > | List of groom caches that will be used to record/play caches | GroomCacheAdapter.h | |
| ReadbackTasks | FGraphEventArray | List of readback tasks to process | GroomCacheAdapter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Playback_PreSolve
(
UPrimitiveComponent* InComponent, |
GroomCacheAdapter.h | ||
virtual void Record_PostSolve
(
UPrimitiveComponent* InComp, |
GroomCacheAdapter.h | ||
virtual void SetRestState
(
UPrimitiveComponent* InComponent, |
GroomCacheAdapter.h |
Overridden from FComponentCacheAdapter
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual Chaos::FPhysicsSolverEvents * BuildEventsSolver
(
UPrimitiveComponent* InComponent |
GroomCacheAdapter.h | ||
virtual void Finalize() |
GroomCacheAdapter.h | ||
virtual Chaos::FPhysicsSolver * GetComponentSolver
(
UPrimitiveComponent* InComponent |
GroomCacheAdapter.h | ||
virtual UClass * GetDesiredClass() |
GroomCacheAdapter.h | ||
virtual FGuid GetGuid() |
GroomCacheAdapter.h | ||
virtual uint8 GetPriority() |
GroomCacheAdapter.h | ||
virtual void InitializeForLoad
(
UPrimitiveComponent* InComponent, |
GroomCacheAdapter.h | ||
virtual bool InitializeForPlayback
(
UPrimitiveComponent* InComponent, |
GroomCacheAdapter.h | ||
virtual bool InitializeForRecord
(
UPrimitiveComponent* InComponent, |
GroomCacheAdapter.h | ||
virtual SupportType SupportsComponentClass
(
UClass* InComponentClass |
GroomCacheAdapter.h | ||
virtual bool ValidForPlayback
(
UPrimitiveComponent* InComponent, |
GroomCacheAdapter.h | ||
virtual void WaitForSolverTasks
(
UPrimitiveComponent* InComponent |
GroomCacheAdapter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void FillCacheProcessor
(
const UGroomComponent* GroomComponent, |
Fill the cache processor from the position buffer | GroomCacheAdapter.h |