FDatasmithActorImporter::ImportActor

Imports an actor of class ActorClass based on ActorElement

Windows
MacOS
Linux

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

Syntax

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

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

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

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