Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGroomCache
References
| Module | HairStrandsCore |
| Header | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomCache.h |
| Include | #include "GroomCache.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UGroomCache :
public UObject,
public IInterface_AssetUserData
Remarks
Implements an asset that is used to store an animated groom
Variables
| Type | Name | Description | |
|---|---|---|---|
| TOptional< FPackageFileVersion > | ArchiveVersion | ||
| TObjectPtr< class UAssetImportData > | AssetImportData | Import options used for this GroomCache | |
| TArray< TObjectPtr< UAssetUserData > > | AssetUserData | Array of user data stored with the asset | |
| TArray< FGroomCacheChunk > | Chunks | ||
| FGroomCacheInfo | GroomCacheInfo |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArray< FGroomCacheChunk > & | GetChunks () |
||
| float | GetDuration () |
||
| int32 | GetEndFrame () |
||
| int32 | GetFrameIndexAtTime
(
const float Time, |
Get the (floored) frame index at the specified time with the index 0 being the start of the animation | |
| void | GetFrameIndicesAtTime
(
float Time, |
Get the frame indices and interpolation factor between them that correspond to the specified time | |
| void | GetFrameIndicesForTimeRange
(
float StartTime, |
Get the frame indices that correspond to the specified time range | |
| int32 | GetFrameNumberAtTime
(
const float Time, |
Get the frame number at the specified time within the animation range which might not start at 0 | |
| const FGroomAnimationInfo & | |||
| bool | GetGroomDataAtFrameIndex
(
int32 FrameIndex, |
||
| bool | GetGroomDataAtTime
(
float Time, |
||
| int32 | |||
| EGroomCacheType | GetType () |
||
| void | Initialize
(
EGroomCacheType Type |
||
| void | SetGroomAnimationInfo
(
const FGroomAnimationInfo& AnimInfo |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IInterface_AssetUserData
| Type | Name | Description | |
|---|---|---|---|
| void | AddAssetUserData
(
UAssetUserData* InUserData |
||
| const TArray< UAssetUserData * > * | |||
| UAssetUserData * | GetAssetUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
||
| void | RemoveUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |