Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Implements an asset that is used to store an animated groom
| Name | UGroomCache |
| Type | class |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomCache.h |
| Include Path | #include "GroomCache.h" |
Syntax
UCLASS (BlueprintType, MinimalAPI)
class UGroomCache :
public UObject ,
public IInterface_AssetUserData ,
public IChaosCacheData
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGroomCache
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArchiveVersion | TOptional< FPackageFileVersion > | GroomCache.h | ||
| AssetImportData | TObjectPtr< class UAssetImportData > | Import options used for this GroomCache | GroomCache.h |
|
| AssetUserData | TArray< TObjectPtr< UAssetUserData > > | Array of user data stored with the asset | GroomCache.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddAssetUserData
(
UAssetUserData* InUserData |
GroomCache.h | ||
virtual const TArray< UAssetUserData * > * GetAssetUserDataArray() |
GroomCache.h | ||
virtual UAssetUserData * GetAssetUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
GroomCache.h | ||
TArray< FGroomCacheChunk > & GetChunks() |
GroomCache.h | ||
int32 GetEndFrame() |
GroomCache.h | ||
int32 GetFrameIndexAtTime
(
const float Time, |
Get the (floored) frame index at the specified time with the index 0 being the start of the animation | GroomCache.h | |
void GetFrameIndicesAtTime
(
float Time, |
Get the frame indices and interpolation factor between them that correspond to the specified time | GroomCache.h | |
void GetFrameIndicesForTimeRange
(
float StartTime, |
Get the frame indices that correspond to the specified time range | GroomCache.h | |
int32 GetFrameNumberAtTime
(
const float Time, |
Get the frame number at the specified time within the animation range which might not start at 0 | GroomCache.h | |
const FGroomAnimationInfo & GetGroomAnimationInfo() |
GroomCache.h | ||
bool GetGroomDataAtFrameIndex
(
int32 FrameIndex, |
GroomCache.h | ||
bool GetGroomDataAtTime
(
float Time, |
GroomCache.h | ||
int32 GetStartFrame() |
GroomCache.h | ||
EGroomCacheType GetType() |
GroomCache.h | ||
void Initialize
(
EGroomCacheType Type |
GroomCache.h | ||
virtual void RemoveUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
GroomCache.h | ||
void SetGroomAnimationInfo
(
const FGroomAnimationInfo& AnimInfo |
GroomCache.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
GroomCache.h | ||
virtual void GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
GroomCache.h | ||
virtual void Serialize
(
FArchive& Ar |
GroomCache.h |
Overridden from IChaosCacheData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetDuration() |
GroomCache.h |