Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGroomAsset
References
| Module | HairStrandsCore |
| Header | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomAsset.h |
| Include | #include "GroomAsset.h" |
Syntax
UCLASS&40;BlueprintType, AutoExpandCategories&61;&40;"HairRendering", "HairPhysics", "HairInterpolation"&41;,
HideCategories&61;&40;Object, "Hidden"&41;&41;
class UGroomAsset :
public UObject,
public IInterface_AssetUserData
Remarks
Implements an asset that can be used to store hair strands
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class UAssetImportData > | AssetImportData | Asset data to be used when re-importing | |
| TArray< TObjectPtr< UAssetUserData > > | AssetUserData | Array of user data stored with the asset | |
| FOnGroomAssetChanged | OnGroomAssetChanged | Private : | |
| FOnGroomAssetResourcesChanged | OnGroomAssetResourcesChanged | ||
| FOnGroomAsyncLoadFinished | OnGroomAsyncLoadFinished |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UGroomAsset
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| bool | |||
| bool | CacheCardsData
(
uint32 GroupIndex, |
||
| bool | CacheDerivedData
(
uint32 GroupIndex |
Caches the computed (group) groom data with the given build settings from/to the Derived Data Cache, building it if needed. | |
| bool | Caches the computed (group) groom data with the given build settings from/to the Derived Data Cache, building it if needed. | ||
| bool | CacheMeshesData
(
uint32 GroupIndex |
||
| bool | CacheStrandsData
(
uint32 GroupIndex, |
||
| bool | Returns true if the asset has the HairDescription needed to recompute its groom data | ||
| TArray< FHairVertexFactoryTypesPerMaterialData > | CollectVertexFactoryTypesPerMaterialData
(
EShaderPlatform ShaderPlatform |
Used for PSO precaching of used materials and vertex factories | |
| void | CommitHairDescription
(
FHairDescription&& HairDescription, |
Commits a HairDescription to buffer for serialization | |
| void | |||
| uint8 | GenerateClassStripFlags
(
FArchive& Ar |
||
| FName | GetAssetPathName
(
int32 LODIndex |
Helper function to return the asset path name, optionally joined with the LOD index if LODIndex > -1. | |
| EGroomBindingType | GetBindingType
(
int32 GroupIndex, |
||
| const TArray< int32 > & | |||
| FName | |||
| FString | GetDerivedDataKey
(
bool bUseCacheKey |
||
| FString | GetDerivedDataKeyForCards
(
uint32 GroupIt, |
||
| FString | GetDerivedDataKeyForMeshes
(
uint32 GroupIndex |
||
| FString | GetDerivedDataKeyForStrands
(
uint32 GroupIndex |
||
| FPerPlatformBool | |||
| FName | |||
| TArray< float > & | |||
| const TArray< float > & | |||
| FName | |||
| FName | |||
| FName | |||
| EGroomGeometryType | GetGeometryType
(
int32 GroupIndex, |
||
| bool | GetHairCardsGuidesDatas
(
const int32 GroupIndex, |
||
| FHairDescription | |||
| const FHairDescriptionGroups & | |||
| const TArray< FHairGroupsCardsSourceDescription > & | |||
| FName | |||
| TArray< FHairGroupInfoWithVisibility > & | |||
| const TArray< FHairGroupInfoWithVisibility > & | |||
| FName | |||
| const TArray< FHairGroupsInterpolation > & | |||
| FName | |||
| const TArray< FHairGroupsLOD > & | |||
| FName | |||
| const TArray< FHairGroupsMaterial > & | |||
| FName | |||
| const TArray< FHairGroupsMeshesSourceDescription > & | |||
| FName | |||
| const TArray< FHairGroupsPhysics > & | |||
| FName | |||
| TArray< FHairGroupPlatformData > & | |||
| const TArray< FHairGroupPlatformData > & | |||
| FName | |||
| const TArray< FHairGroupsRendering > & | |||
| FName | |||
| FName | |||
| bool | GetHairStrandsDatas
(
const int32 GroupIndex, |
Get/Build render & guides data based on the hair description and interpolation settings | |
| int32 | GetLODCount () |
||
| int32 | GetMaterialIndex
(
FName MaterialSlotName |
Return the material slot index corresponding to the material name | |
| TArray< FName > | |||
| FPerPlatformInt | GetMinLOD () |
||
| FName | |||
| int32 | |||
| FOnGroomAssetChanged & | |||
| FOnGroomAssetResourcesChanged & | |||
| FOnGroomAsyncLoadFinished & | |||
| FName | |||
| bool | HasDebugData () |
Debug data for derived asset generation (strands textures, ...). | |
| bool | HasGeometryType
(
EGroomGeometryType Type |
||
| bool | HasGeometryType
(
uint32 GroupIndex, |
||
| void | |||
| void | |||
| void | |||
| void | Initialize/Update/Release resources. | ||
| void | |||
| bool | IsDeformationEnable
(
int32 GroupIndex |
||
| bool | IsGlobalInterpolationEnable
(
int32 GroupIndex, |
||
| bool | IsMaterialSlotNameValid
(
FName MaterialSlotName |
||
| bool | IsMaterialUsed
(
int32 MaterialIndex |
||
| bool | IsSimulationEnable
(
int32 GroupIndex, |
||
| bool | |||
| bool | IsValid () |
||
| bool | IsVisible
(
int32 GroupIndex, |
||
| void | |||
| bool | NeedsInterpolationData
(
int32 GroupIndex |
||
| bool | |||
| void | ReleaseCardsResource
(
uint32 GroupIndex |
||
| void | ReleaseGuidesResource
(
uint32 GroupIndex |
||
| void | ReleaseMeshesResource
(
uint32 GroupIndex |
||
| void | |||
| void | ReleaseStrandsResource
(
uint32 GroupIndex |
||
| void | SaveProceduralCards
(
uint32 CardsGroupIndex |
Save out a static mesh based on generated cards. | |
| void | |||
| void | SetEffectiveLODBias
(
const TArray< float >& In |
||
| void | SetHairGroupsInfo
(
const TArray< FHairGroupInfoWithVisibility >& In |
||
| void | SetHairGroupsPlatformData
(
const TArray< FHairGroupPlatformData >& In |
||
| void | SetHairWidth
(
float Width |
||
| void | SetMinLOD
(
FPerPlatformInt In |
||
| void | SetNumGroup
(
uint32 InGroupCount, |
||
| void | SetScatterSceneLighting
(
bool Enable |
||
| void | SetStableRasterization
(
bool bEnable |
Helper functions for setting options on all hair groups. | |
| void | |||
| void | |||
| void | |||
| void |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Retrievde the asset tags | |
| void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Part of Uobject interface | |
| void | Part of Uobject interface | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | PreSave
(
FObjectPreSaveContext SaveContext |
Presave function. | |
| 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 |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EClassDataStripFlag | |||
| EHairDescriptionType |
Typedefs
| Name | Description |
|---|---|
| FOnGroomAssetChanged | Notification when anything changed |
| FOnGroomAssetResourcesChanged | |
| FOnGroomAsyncLoadFinished |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< int32 > | DeformedGroupSections | Please do not access this member directly; use UGroomAsset accessor. | |
| FPerPlatformBool | DisableBelowMinLodStripping | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< float > | EffectiveLODBias | Please do not access this member directly; use UGroomAsset accessor. | |
| bool | EnableGlobalInterpolation | Please do not access this member directly; use UGroomAsset accessor. | |
| bool | EnableSimulationCache | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsCardsSourceDescription > | HairGroupsCards | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupInfoWithVisibility > | HairGroupsInfo | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsInterpolation > | HairGroupsInterpolation | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsLOD > | HairGroupsLOD | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsMaterial > | HairGroupsMaterials | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsMeshesSourceDescription > | HairGroupsMeshes | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsPhysics > | HairGroupsPhysics | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupPlatformData > | HairGroupsPlatformData | Please do not access this member directly; use UGroomAsset accessor. | |
| TArray< FHairGroupsRendering > | HairGroupsRendering | Please do not access this member directly; use UGroomAsset accessor. | |
| EGroomInterpolationType | HairInterpolationType | Please do not access this member directly; use UGroomAsset accessor. | |
| FPerPlatformInt | MinLOD | Please do not access this member directly; use UGroomAsset accessor. | |
| TObjectPtr< USkeletalMesh > | RiggedSkeletalMesh | Please do not access this member directly; use UGroomAsset accessor. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | PreSave
(
const ITargetPlatform* TargetPlatform |
Use version that takes FObjectPreSaveContext instead. |