FDatasmithImporter::ImportActorAsComponent

Adds a new component to the root actor. The component class is determined by the ActorElement type.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

static void ImportActorAsComponent
(
    FDatasmithImportContext & ImportContext,
    const TSharedRef< IDatasmithActorElement > & ActorElement,
    AActor * InRootActor,
    FDatasmithActorUniqueLabelProvider & UniqueNameProvider
)

Remarks

Adds a new component to the root actor. The component class is determined by the ActorElement type.

Parameters

Parameter

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