UGroomComponent

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

HairStrandsCore

Header

/Engine/Plugins/Experimental/HairStrands/Source/HairStrandsCore/Public/GroomComponent.h

Include

#include "GroomComponent.h"

Syntax

UCLASS (HideCategories=(Object, Physics, Activation, Mobility, "Components|Activation"),
       EditInlineNew, Meta=(BlueprintSpawnableComponent), ClassGroup=Rendering)
class UGroomComponent : public UMeshComponent

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

bBindGroomToSkeletalMesh

When activated, the groom will be attached and skinned onto the skeletal mesh, if the groom component is a child of a skeletal/skinned component.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

UGroomBindingAs ...

 

BindingAsset

Optional binding asset for binding a groom onto a skeletal mesh.

Public variable

bool

 

bInitSimulation

Boolean to check when the simulation should be initialized

Public variable

bool

 

bResetSimulation

Boolean to check when the simulation should be reset

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

UGroomAsset ...

 

GroomAsset

Groom asset .

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

TArray < FHairGr ...

 

GroomGroupsDesc

Groom's groups info.

Public variable UProperty

UMaterialInterf ...

 

HairDebugMaterial

Public variable UProperty

UMaterialInterf ...

 

HairDefaultMaterial

Public variable UProperty Transient

TArray < class U ...

 

NiagaraComponents

Niagara components that will be attached to the system

Public variable

FMatrix

 

PrevBoneMatrix

Previous bone matrix to compare the difference and decide to reset or not the simulation

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

USkeletalMesh &...

 

SourceSkeletalMesh

Skeletal mesh on which the groom has been authored.

Constructors

Name Description

Public function

UGroomComponent

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function

FHairStrands...

 

GetGuideStrandsDatas

(
    uint32 GroupIndex
)

Return the guide hairs datas

Public function

FHairStrands ...

 

GetGuideStrandsDeformedResource

(
    uint32 GroupIndex
)

Return the guide hairs deformed resources

Public function

FHairStrands ...

 

GetGuideStrandsDeformedRootResource

(
    uint32 GroupIndex
)

Public function

FHairStrands ...

 

GetGuideStrandsRestResource

(
    uint32 GroupIndex
)

Return the guide hairs rest resources

Public function

FHairStrands ...

 

GetGuideStrandsRestRootResource

(
    uint32 GroupIndex
)

Return the guide hairs root resources

Public function

void

 

Invalidate()

Public function

void

 

InvalidateAndRecreate()

Public function

void

 

ReleaseHairSimulation()

Release Niagara components

Public function

void

 

SetBinding

(
    UGroomBindingAsset * InBinding
)

Public function

void

 

SetBinding

(
    bool bBind
)

Public function

void

 

SetGroomAsset

(
    UGroomAsset * Asset
)

Public function

void

 

SetGroomAsset

(
    UGroomAsset * Asset,
    UGroomBindingAsset * InBinding
)

Public function

void

 

SetHairLengthScale

(
    float Scale
)

Public function

void

 

SetHairRootScale

(
    float Scale
)

Public function

void

 

SetHairWidth

(
    float HairWidth
)

Public function

void

 

SetScatterSceneLighting

(
    bool Enable
)

Public function

void

 

SetStableRasterization

(
    bool bEnable
)

Public function

void

 

UpdateHairGroupsDesc()

Update Group Description

Public function

void

 

UpdateHairSimulation()

Update Niagara components

Public function

void

 

UpdateSimulatedGroups()

Update simulated groups

Public function Const

void

 

ValidateMaterials

(
    bool bMapCheck
)

Overridden from UPrimitiveComponent

Name Description

Public function Virtual

FPrimitiveSc ...

 

CreateSceneProxy()

Creates a proxy to represent the primitive to the scene manager in the rendering thread.

Public function Virtual Const

UMaterialInt ...

 

GetMaterial

(
    int32 ElementIndex
)

Returns the material used by the element at the specified index

Public function Virtual Const

int32

 

GetNumMaterials()

Return number of material elements in this primitive

Overridden from USceneComponent

Name Description

Public function Virtual Const

FBoxSphereBo ...

 

CalcBounds

(
    const FTransform & LocalToWorld
)

Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size.

Public function Virtual

void

 

OnAttachmentChanged()

Called when AttachParent changes, to allow the scene to update its attachment state.

Protected function Virtual

void

 

OnChildAttached

(
    USceneComponent * ChildComponen...
)

Used for tracking if a Niagara component is attached or not.

Protected function Virtual

void

 

OnChildDetached

(
    USceneComponent * ChildComponen...
)

Called after a child scene component is detached from this component.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

CheckForErrors()

Function that gets called from within Map_Check to allow this actor component to check itself for any potential errors and register them with map check dialog.

Public function Virtual

void

 

OnComponentDestroyed

(
    bool bDestroyingHierarchy
)

Called when a component is destroyed

Public function Virtual

void

 

OnRegister()

Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.

Public function Virtual

void

 

OnUnregister()

Called when a component is unregistered.

Public function Virtual

void

 

SendRenderTransform_Concurrent()

Called to send a transform update for this component to the rendering thread

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction * T...
)

Function called every frame on this ActorComponent.

Overridden from UObject

Name Description

Public function Virtual Const

bool

 

CanEditChange

(
    const FProperty * InProperty
)

Called by the editor to query whether a property of this object is allowed to be modified.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

PreEditChange

(
    FProperty * PropertyAboutToChan...
)

This is called when a property is about to be modified externally

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback