FDatasmithActorImporter::ImportSceneComponent

Imports a scene component of class ComponentClass based on ActorElement Will add the component as an instance component of Outer if Outer is an Actor

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 USceneComponent * ImportSceneComponent
(
    UClass * ComponentClass,
    const TSharedRef< IDatasmithActorElement > & ActorElement,
    FDatasmithImportContext & ImportContext,
    UObject * Outer,
    FDatasmithActorUniqueLabelProvider & UniqueNameProvider
)

Remarks

Imports a scene component of class ComponentClass based on ActorElement Will add the component as an instance component of Outer if Outer is an Actor

Returns

Returns the importer scene component. The component is not registered to allow edits. The caller needs to register it when the setup is complete.

Parameters

Parameter

Description

ComponentClass

The class of the scene component to import. Needs to be a USceneComponent or a child of USceneComponent

ActorElement

The Datasmith element containing the data for the component

ImportContext

The context in which we're importing

Outer

The outer that will contain 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