UDatasmithVariantSetElement

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

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 UDatasmithVariantSetElement : public UDatasmithObjectElement

Remarks

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

AddVariant

(
    const UDatasmithVariantElement*...
)

Adds an existing variant to this variant set

Public function UFunction BlueprintCallable, Category

UDatasmithVa...

 

CreateVariant

(
    FName InElementName
)

Create a new variant and add it to the parent variant set

Public function UFunction BlueprintCallable, Category

UDatasmithVa...

 

GetVariant

(
    int32 Index
)

Gets a variant from this variant set

Public function Const UFunction BlueprintCallable, Category

int32

 

GetVariantsCount()

Gets how many variants are in this variant set

Public function Const

TWeakPtr< ID...

 

GetVariantSetElement()

Public function UFunction BlueprintCallable, Category

void

 

RemoveVariant

(
    const UDatasmithVariantElement*...
)

Removes a variant from this variant set

Public function

void

 

SetVariantSetElement

(
    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