Module |
|
Header |
/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithActorImporter.h |
Include |
#include "DatasmithActorImporter.h" |
Source |
/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithActorImporter.cpp |
static AActor * ImportActor
(
UClass * ActorClass,
const TSharedRef< IDatasmithActorElement > & ActorElement,
FDatasmithImportContext & ImportContext,
EDatasmithImportActorPolicy ImportActorPolicy,
TFunction< void *) > PostSpawnFunc
)
Imports an actor of class ActorClass based on ActorElement
Returns the imported actor. The root component is not registered to allow edits. The caller needs to register it when the setup is complete.
Parameter |
Description |
---|---|
ActorClass |
The class of the actor to import |
ActorElement |
The Datasmith element containing the data for the actor |
ImportContext |
The context in which we're importing |
ImportActorPolicy |
How to handle existing and deleted actors |
PostSpawnFunc |
Function to invoke right after spawning a new actor, before any additional setup is performed |