UDatasmithVariantElement

[UDatasmithVariantElement](API\Plugins\DatasmithImporter\ObjectElements\UDatasmithVariantElement)

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h

Include

#include "ObjectElements/DatasmithUObjectElements.h"

Syntax

UCLASS()
class UDatasmithVariantElement : public UDatasmithObjectElement

Remarks

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

AddActorBinding

(
    const UDatasmithActorBindingElement...
)

Adds an existing actor binding to this variant

Public function UFunction BlueprintCallable, Category

UDatasmithAc...

 

CreateActorBinding()

Create a new actor binding and add it to this variant

Public function UFunction BlueprintCallable, Category

UDatasmithAc...

 

GetActorBinding

(
    int32 Index
)

Gets an actor binding from this variant

Public function Const UFunction BlueprintCallable, Category

int32

 

GetActorBindingsCount()

Gets how many actor bindings are in this variant

Public function Const

TWeakPtr< ID...

 

GetVariantElement()

Public function UFunction BlueprintCallable, Category

void

 

RemoveActorBinding

(
    const UDatasmithActorBindingElement...
)

Removes an actor binding from this variant

Public function

void

 

SetVariantElement

(
    const TSharedPtr< IDatasmithVariant...
)

Overridden from UDatasmithObjectElement

Name Description

Protected function Virtual Const

TWeakPtr< ID...

 

GetIDatasmithElement()

TODO: They are not covariant because of the TWeakPtr, can't override in child.

Public function Virtual Const

bool

 

IsElementValid()

Is the Element still valid for the Datasmith Scene