Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Hair strands Curves attribute
| Name | FHairStrandsCurves |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/HairStrandsDatas.h |
| Include Path | #include "HairStrandsDatas.h" |
Syntax
struct FHairStrandsCurves
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AttributeFlags | uint32 | Flags for attributes | HairStrandsDatas.h | |
| ClumpIDs | TArray< FIntVector > | Clump ID associated with each curve (optional) | HairStrandsDatas.h | |
| CurvesClosestGuideIDs | TArray< FIntVector > | Custom guide IDs (indexed with StrandID) (optional) | HairStrandsDatas.h | |
| CurvesClosestGuideWeights | TArray< FVector3f > | Custom guid weights (indexed with StrandID) (optional) | HairStrandsDatas.h | |
| CurvesCount | TArray< uint16 > | Number of points per rod | HairStrandsDatas.h | |
| CurvesLength | TArray< float > | Normalized length relative to the max one | HairStrandsDatas.h | |
| CurvesMapping | TArray< uint32 > | Curves source mapping | HairStrandsDatas.h | |
| CurvesOffset | TArray< uint32 > | An offset represent the rod start in the point list | HairStrandsDatas.h | |
| CurvesRootUV | TArray< FVector2f > | Roots UV. Support UDIM coordinate up to 256x256 (optional) | HairStrandsDatas.h | |
| GroomIDToIndex | TMap< int, int > | Mapping of imported Groom ID to index | HairStrandsDatas.h | |
| SourceCurveCount | uint32 | Source curve count | HairStrandsDatas.h | |
| StrandIDs | TArray< int > | Strand ID associated with each curve (optional) | HairStrandsDatas.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasAttribute
(
EHairAttribute In |
HairStrandsDatas.h | ||
bool HasPrecomputedWeights() |
HairStrandsDatas.h | ||
uint32 Num() |
Get the number of Curves | HairStrandsDatas.h | |
void Reset() |
Reset the curves to 0 | HairStrandsDatas.h | |
void SetNum
(
const uint32 NumPoints, |
Set the number of Curves | HairStrandsDatas.h |