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 (BlueprintType, AutoExpandCategories=("HairRendering", "HairPhysics", "HairInterpolation"),
HideCategories=(Object, "Hidden"))
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 | |
| TArray< int32 > | DeformedGroupSections | Deformed skeletal mesh mapping from groups to sections | |
| FPerPlatformBool | DisableBelowMinLodStripping | When true all LODs below MinLod will still be cooked | |
| TArray< float > | EffectiveLODBias | The LOD bias to use after LOD stripping, regardless of MinLOD. Computed at cook time | |
| bool | EnableGlobalInterpolation | Enable radial basis function interpolation to be used instead of the local skin rigid transform | |
| bool | EnableSimulationCache | Enable guide-cache support. This allows to attach a guide-cache dynamically at runtime | |
| TArray< FHairGroupsCardsSourceDescription > | HairGroupsCards | Cards - Source description data | |
| TArray< FHairGroupInfoWithVisibility > | HairGroupsInfo | ||
| TArray< FHairGroupsInterpolation > | HairGroupsInterpolation | ||
| TArray< FHairGroupsLOD > | HairGroupsLOD | ||
| TArray< FHairGroupsMaterial > | HairGroupsMaterials | Meshes - Source description data | |
| TArray< FHairGroupsMeshesSourceDescription > | HairGroupsMeshes | Meshes - Source description data | |
| TArray< FHairGroupsPhysics > | HairGroupsPhysics | ||
| TArray< FHairGroupPlatformData > | HairGroupsPlatformData | Store strands/cards/meshes data | |
| TArray< FHairGroupsRendering > | HairGroupsRendering | ||
| EGroomInterpolationType | HairInterpolationType | Type of interpolation used | |
| FPerPlatformInt | MinLOD | Minimum LOD to cook | |
| FOnGroomAssetChanged | OnGroomAssetChanged | Private : | |
| FOnGroomAssetResourcesChanged | OnGroomAssetResourcesChanged | ||
| FOnGroomAsyncLoadFinished | OnGroomAsyncLoadFinished | ||
| TObjectPtr< USkeletalMesh > | RiggedSkeletalMesh | Deformed skeletal mesh that will drive the groom deformation/simulation. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UGroomAsset
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddAssetUserData
(
UAssetUserData* InUserData |
||
| bool | |||
| bool | |||
| bool | |||
| bool | CacheCardsData
(
uint32 GroupIndex, |
||
| bool | CacheDerivedData
(
uint32 GroupIndex |
||
| 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 | ||
| void | ChangeFeatureLevel
(
ERHIFeatureLevel::Type PendingFeatureLevel |
||
| void | ChangePlatformLevel
(
ERHIFeatureLevel::Type PendingFeatureLevel |
||
| 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 |
||
| uint32 | GetAssetHash () |
||
| FName | GetAssetPathName
(
int32 LODIndex |
Helper function to return the asset path name, optionally joined with the LOD index if LODIndex > -1. | |
| const TArray< UAssetUserData * > * | |||
| UAssetUserData * | GetAssetUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
||
| float | |||
| FName | |||
| 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 | |||
| const TArray< float > & | |||
| 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 | |||
| TArray< FHairGroupResources > & | |||
| const TArray< FHairGroupResources > & | |||
| FName | |||
| bool | GetHairStrandsDatas
(
const int32 GroupIndex, |
Get/Build render & guides data based on the hair description and interpolation settings | |
| int32 | GetLODCount () |
||
| EGroomLODMode | GetLODMode () |
||
| FName | |||
| 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 | |||
| void | |||
| bool | |||
| bool | NeedsInterpolationData
(
int32 GroupIndex |
||
| void | |||
| void | ReleaseCardsResource
(
uint32 GroupIndex |
||
| void | ReleaseGuidesResource
(
uint32 GroupIndex |
||
| void | ReleaseMeshesResource
(
uint32 GroupIndex |
||
| void | |||
| void | ReleaseStrandsResource
(
uint32 GroupIndex |
||
| void | RemoveUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
||
| 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 |
||
| void | GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Retrieve 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). | |
| bool | Modify
(
bool bAlwaysMarkDirty |
Part of Uobject interface | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Part of Uobject interface | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EClassDataStripFlag | |||
| EHairDescriptionType |
Typedefs
| Name | Description |
|---|---|
| FOnGroomAssetChanged | Notification when anything changed |
| FOnGroomAssetResourcesChanged | |
| FOnGroomAsyncLoadFinished |