FDatasmithImporter::ImportActorAsComponent

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss