Navigation
API > API/Plugins > API/Plugins/DatasmithImporter
| Name | UDatasmithVariantElement |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h |
| Include Path | #include "ObjectElements/DatasmithUObjectElements.h" |
Syntax
UCLASS ()
class UDatasmithVariantElement : public UDatasmithObjectElement
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDatasmithObjectElement → UDatasmithVariantElement
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DatasmithElement | TWeakPtr< IDatasmithVariantElement > | ObjectElements/DatasmithUObjectElements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddActorBinding
(
const UDatasmithActorBindingElement* Binding |
Adds an existing actor binding to this variant | ObjectElements/DatasmithUObjectElements.h |
|
UDatasmithActorBindingElement * CreateActorBinding() |
Create a new actor binding and add it to this variant | ObjectElements/DatasmithUObjectElements.h |
|
UDatasmithActorBindingElement * GetActorBinding
(
int32 Index |
Gets an actor binding from this variant | ObjectElements/DatasmithUObjectElements.h |
|
int32 GetActorBindingsCount() |
Gets how many actor bindings are in this variant | ObjectElements/DatasmithUObjectElements.h |
|
TWeakPtr< IDatasmithVariantElement > GetVariantElement() |
ObjectElements/DatasmithUObjectElements.h | ||
void RemoveActorBinding
(
const UDatasmithActorBindingElement* Binding |
Removes an actor binding from this variant | ObjectElements/DatasmithUObjectElements.h |
|
void SetVariantElement
(
const TSharedPtr< IDatasmithVariantElement >& InElement |
ObjectElements/DatasmithUObjectElements.h |
Overridden from UDatasmithObjectElement
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsElementValid() |
Is the Element still valid for the Datasmith Scene | ObjectElements/DatasmithUObjectElements.h |
Protected
Overridden from UDatasmithObjectElement
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TWeakPtr< IDatasmithElement > GetIDatasmithElement() |
TODO: They are not covariant because of the TWeakPtr, can't override in child. | ObjectElements/DatasmithUObjectElements.h |