Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/FDatasmithImporter
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithImporter.h |
| Include | #include "DatasmithImporter.h" |
| Source | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithImporter.cpp |
static void ImportActorAsComponent
&40;
FDatasmithImportContext & ImportContext,
const TSharedRef< IDatasmithActorElement > & ActorElement,
AActor &42; InRootActor,
FDatasmithActorUniqueLabelProvider & UniqueNameProvider
&41;
Remarks
Adds a new component to the root actor. The component class is determined by the ActorElement type.
Parameters
| Name | Description |
|---|---|
| ImportContext | The context in which we're importing |
| ActorElement | The Datasmith element containing the data for the component |
| RootActor | The actor in which to add the component |