Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/FDatasmithActorImporter
References
| Module | DatasmithImporter |
| 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
)
Remarks
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.
Parameters
| Name | 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 |