UGroomActorFactory

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

HairStrandsEditor

Header

/Engine/Plugins/Runtime/HairStrands/Source/HairStrandsEditor/Public/GroomActorFactory.h

Include

#include "GroomActorFactory.h"

Syntax

UCLASS(MinimalAPI, Config=Editor)
class UGroomActorFactory : public UActorFactory

Constructors

Name Description

Public function

UGroomActorFactory

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UActorFactory

Name Description

Public function Virtual Const

FQuat

 

AlignObjectToSurfaceNormal

(
    const FVector& InSurfaceNormal,
    const FQuat& ActorRotation
)

Return a quaternion which aligns this actor type to the specified surface normal

Public function Virtual

bool

 

CanCreateActorFrom

(
    const FAssetData& AssetData,
    FText& OutErrorMsg
)

Public function Virtual

UObject *...

 

GetAssetFromActorInstance

(
    AActor* ActorInstance
)

Given an instance of an actor, find the wrapped asset object which can be used to create a valid FAssetData.

Public function Virtual

void

 

PostCreateBlueprint

(
    UObject* Asset,
    AActor* CDO
)

Override this in derived factory classes if needed.

Public function Virtual

void

 

PostSpawnActor

(
    UObject* Asset,
    AActor* NewActor
)

Subclasses may implement this to modify the actor after it has been spawned IMPORTANT: If you override this, you should usually also override PostCreateBlueprint()!